Questions tagged [category]

Joomla! Categories are used to logically group content-type data.

Filter by
Sorted by
Tagged with
1 vote
2 answers
19 views

List of contacts shows an obsolete name

I want to remove a person from the contacts. The contact appears in the frontend but not in the contacts component, so I can not remove or unpublish. (I think someone maybe deleted a non-empty ...
Dick Oudenampsen's user avatar
0 votes
1 answer
55 views

Joomla 4 Component SEF URL not working for detail page of the item when catid is added in the url

Below is the have written the code router file in the component namespace Test\Component\Test\Site\Service; // No direct access defined('_JEXEC') or die; use Joomla\CMS\Component\Router\...
user4571727's user avatar
0 votes
1 answer
48 views

Joomla 4: Adding category parameter(s)

How do I get the solution for this https://stackoverflow.com/questions/18975896/adding-category-parameters to work on Joomla 4? My extension includes various categories, which I've named "[...
Alexandre Paulo's user avatar
0 votes
1 answer
63 views

Is it possible to create two category fields in the same table with different menu categories to each of them to add new category

For example, in my table #__shopping_details I want to add two category fields so I added <field name="shopping_account" extension="com_shopping.shoppingdetails" type="...
user4571727's user avatar
0 votes
1 answer
30 views

Get Category id onAfterRoute when using category dropdown

I have written a Joomla 4 plugin (trigger: onAfterRoute) that changes the layout of the article edit based on the category. This works when creating a new article with a pre-selected category, but ...
user1621015's user avatar
1 vote
1 answer
43 views

How to register {my namespace]\Site\Service\Category?

My component is using Joomla Categories and I'm using the following code to fetch a category: $component = Joomla\CMS\Factory::getApplication()->bootComponent('com_khub'); $category = $component-&...
Alexandre Paulo's user avatar
1 vote
1 answer
136 views

J4. Get children categories

In a custom template helper of com_content I need to get all children categories from specific category. $categories = Joomla\CMS\Categories\Categories::getInstance('content'); $cat = $...
Peli's user avatar
  • 91
1 vote
1 answer
25 views

Display only one Category and its sub-categories

I have created a custom filter.xml to search for specific documents. Using Joomla's category system, I have also create 3 main categories. Courtrolls, Newsletter and communique. In my filter form, I ...
DeesreX's user avatar
  • 87
1 vote
0 answers
16 views

How to select a category in frontend when creating an article?

How to enable a frontend user to select a category when creating an article? When the user attempts to create a new article, the 'Category' drop down, under Publishing, is disabled. Is there a way to ...
Hrvoje T's user avatar
  • 111
1 vote
1 answer
47 views

Custom J4 Component - Multiple Models & Different Category "Groups"?

I have a Custom J4 Component that should have different types of contents. So called "items" and "packages". The items are done so far and using the default J4 categories via "...
Marco's user avatar
  • 551
1 vote
0 answers
36 views

Joomla! 4.1.5 category ACL logic

I am struggling with the logic of an ACL setting in Joomla! 4.1.5. It concerns front-end editing, but I suspect it also applies to the back-end. It concerns the permissions of a category. When I leave ...
Pieter-Jan de Vries's user avatar
2 votes
1 answer
90 views

What is the correct way to insert the first category called "Uncategorized" in the categories table in the SQL file during installation of component?

I also need to know if the insert of the table #__content_types is correct and if there is something missing in the SQL installation code. SET time_zone = "+00:00"; CREATE TABLE IF NOT ...
JonatasCF's user avatar
3 votes
2 answers
246 views

How to set/change default article category in Joomla 3.10?

When I create a new article, there is a default category of "Uncategorised". Is there any way to set a different default article category instead of the native default "Uncategorised&...
Nikola Nikovski's user avatar
0 votes
0 answers
96 views

joomla4: test the category id

I have tried if ($this->item->catid == 12){ return true; } OR with $article->catid I put the mentioned code in a module https://joomhelper.com/dbpqnex Another solution (maybe even more ...
Hdcms's user avatar
  • 51
1 vote
1 answer
225 views

Create a category from frontend in Joomla 4

The registered user gets the "Author" access rights. Through the menu, you can make the button "Create material" and the Author, having entered the site, can create this material. ...
Patrick Bond's user avatar
0 votes
0 answers
38 views

Dynamic page filled with content depending on the previous page

I am kinda new as a developer and I want to achieve the following in Joomla. The idea is that I have a category->sub category->products. The category and subcategory will be added in joomla and ...
Anthi's user avatar
  • 1
1 vote
0 answers
72 views

"404 Component not found" when trying to set an image for a category

I'm experiencing a really weird error in the backend of my site - Whenever I try to set an image for a category or article, the modal that pops up just shows me the Joomla dashboard. When I'm editing ...
D Shaw's user avatar
  • 11
0 votes
0 answers
22 views

Want to show random item title from one appointed category

I have following codes: <?php foreach ($list as $item) : ?> <li<?php if ($id == $item->id && in_array($view, array('category', 'categories')) && $option == '...
zhang's user avatar
  • 23
0 votes
2 answers
224 views

How to get category ID when creating new article in administration area

When creating a new article, how can I get the current selected category ID as shown in the category select field? I need to pass the value to a PHP variable. There is the javascript function ...
Nadal's user avatar
  • 188
0 votes
1 answer
821 views

How to get the category name by id in custom component view

I have a custom component where I have a category field in a view (backend). That gives me the category id in the front-end. Now I want to know how I could fetch the category name from this catid. I ...
TLWebdesignNL's user avatar
1 vote
2 answers
228 views

How to disable all category pages?

I have a Joomla site and I would like to hide the category pages. Google is indexing some of them with a number before. For example, I have a product category and the mydomain.com/2-products page is ...
user avatar
0 votes
1 answer
98 views

category links don't work

On my site there are 2 types of categories: the first has link mysite.com/id-category and in this case I cannot see the content of the page (the div with id "t3-mainbody" is missing in the generated ...
Giovanni de Maria's user avatar
0 votes
0 answers
51 views

Joomla blank page after migration?

I have Joomla 3.3.1 version After migrating the web site to another host (with IIS server) I had a problem with blank pages when I click on a menu The home page is displayed well, the problem is just ...
Mohammed's user avatar
0 votes
1 answer
62 views

How to conditionally filter the presentation of category when creating a new category/article?

I am looking for a solution for the following requirements: Display only the category of first level when creating new category. Display only the category of second level when creating article in ...
Maiky's user avatar
  • 1
1 vote
1 answer
33 views

Confusion between links menu types and categories

I'm facing an issue with Joomla 3.9.16. I have created many categories, with sub-categories ; here is my organisation : I created corresponding menus and sub-menus to be able to put some modules ...
John's user avatar
  • 113
0 votes
1 answer
50 views

Custom Category Field

Using Joomla 3.9, although Custom Fields is now available, I am opting to do this in a plugin instead for reasons. I have created a plugin to hook into the Category view in admin, so that I can add a ...
Grant G's user avatar
  • 704
1 vote
2 answers
644 views

Remove 'There are no articles in this category.' Text

Joomla 3.9.14 I have a category with no articles, although the sub categories do contain articles. - colours (no articles) -- red (1 article) -- blue (2 articles) I have a menu type Category ...
jonboy's user avatar
  • 3,563
0 votes
1 answer
173 views

Only show joomla custom fields on certain category levels

Is it possible to only show a field on for example the 3rd level of categories? Now when I link a field to a top level categorie, the field is shown on all articles on all levels of categories, but is ...
twan's user avatar
  • 129
2 votes
1 answer
265 views

Joomla SEF url in CLI script

I am new to Joomla, I am writing a script under folder cli. I am calling helper file of admin component where I fetch category and return url of category. The function in helper is fine and works ...
Ekta Puri's user avatar
  • 135
1 vote
1 answer
77 views

Store category record using JTable instance from controller

I want to store a category record from controller by using JTable. My working code is- $table = JTable::getInstance('Category'); $data = array('id' => 0, 'parent_id' = 1, 'path' => 'demo', '...
Sajeeb Ahamed's user avatar
1 vote
1 answer
954 views

How to add category name to url path for an article in Joomla 4?

How to display category name in the url path? Say I have a category named cat1, and an article1 under this category. I want to display website.wb/cat1/article1, but what I get is website.wb/article1. ...
JDoe's user avatar
  • 45
1 vote
2 answers
386 views

How to make Category Links noindex

Is there a way to make all my categories to be "noindex"? (Plugin or even better default joomla way) Right now crawlers find the category URLs and thus create duplicate content on search engines. ...
cilap's user avatar
  • 294
1 vote
0 answers
57 views

Suddenly URLs with "table/"

I'm running a simple site based on Joomla. The SEF URLs are defined by SH404SEF and look like https://[domain]/[category]/[sub category]/[article title alias].html. In some cases there is a 1-to-1 ...
hajo70's user avatar
  • 11
2 votes
1 answer
500 views

Is it possible to insert a category list view inside an article?

I want to get a category list view inside an article (in this case, inside a tab in an article), but I want to see this category list view styled like when a menu item type shows a category list: a ...
user1534144's user avatar
1 vote
0 answers
24 views

Manage Categories in Site part. Is possible?

I use the com_categories in my custom component based on the joomla Docs Adding Categories. But I need to manage the categories in the site part. I was wondering if there is an easy way to do it, or ...
mixahlos's user avatar
  • 418
0 votes
2 answers
59 views

Best practices sending mail

In order to develope my own subscription module, what is the best practice sending mail to a list of users: send only one mail with multiple bcc recipients or send one mail per recipient? In case of ...
Sergio Teijido's user avatar
1 vote
2 answers
495 views

if article is part of category or any of it's children

I know I can get the category id and parent category id, but what I really want is a category and any child categories. I'm making a group of articles and I want to do an override to add a class to ...
Eoin's user avatar
  • 1,889
0 votes
1 answer
304 views

I've missed something with how category layout override is working

I'm working on a students directory with the following structures: Directory (parent category) |_ 2017-2016 (child category) |_ 2016-2015 (child category) |_ 2015-2014 (child category) … In each ...
Simon D.'s user avatar
0 votes
0 answers
90 views

Category Manager: How to show a list of a category AND ONLY its subcategory?

I have hundreds of categories on one Joomla site. Using the Joomla administrator category manager, I'd like to find a way to list a category AND ONLY its children subcategories. To be clear, I'd ...
NivF007's user avatar
  • 2,097
2 votes
3 answers
2k views

Has there been a better solution for showing modules only on article list page(but not article page)?

A typical scenario I believe every Joomla users have encountered is: You have a module on the article list page(like Category Blog), but you don't want this module to also show on the article content ...
shenkwen's user avatar
  • 1,369
1 vote
2 answers
229 views

Error on save of articles and categories

I'm getting this error when I try to save new category. However, the category is created after I refresh listing. Any ideas? Call to undefined method Joomla\CMS\Application\AdministratorApplication::...
GrannyKat's user avatar
  • 111
1 vote
1 answer
200 views

Joomla set Template Alternative Layout via link, is it possible?

I came across an strange behavior and I am trying to find out if I can solve this by setting the layout to be used via the link to the category. Here is what happened. I have a template override for ...
edger's user avatar
  • 23
1 vote
0 answers
56 views

Category Blog Allows Viewing of all Categories

I have a Category Blog Menu Item where I have chosen all articles with category News to be displayed and layed out how I like. However, by creating just one Category Blog menu item on my site, now all ...
Daniel W.'s user avatar
  • 111
0 votes
2 answers
67 views

How can I create a page that links to all articles with fake long titles?

I would like to have a page that lists all articles in a category by subcategory, and to have these articles listed by titles longer than Joomla's built-in maximum length. In asking this question I ...
Dan's user avatar
  • 341
1 vote
1 answer
153 views

Get ID for new Article or Category

I'm programming in a button to allow users to add a new category or article but I'm also tracking the IDs to create the custom webpage structure. So when the user clicks the button I need to know the ...
joecap5's user avatar
  • 167
1 vote
1 answer
78 views

How to prevent category pages from being visited

Here is my problem, I made couple content categories, the structure is something like this: pages (here I store all the pages, like about us, contacts, news, privacy policy, etc); news (with ...
Mike's user avatar
  • 125
1 vote
0 answers
829 views

How to get main parent category id from category/subcategory

I am getting one category id in code but it can be the id of either category or subcategory. And by the following code i am able to fetch the parent category chain. $Jcategories = JCategories::...
Liz.'s user avatar
  • 1,375
2 votes
4 answers
138 views

Joomla Category Rename Problem

We have a Joomla website, and I renamed a category (it was named "Active Clinical Trials" - and I changed that to just "Clinical Trials") But - if you go to this link (open in a new tab please to ...
B DeSaw's user avatar
  • 23
0 votes
1 answer
58 views

how can i config Menu Type: Category Articles

I bought a theme for my joomla webpage "joomla 3.6.5". This template uses very handy feature: all articles belonging to a category displayed vertical in a row with an navigation button at the bottom ...
Solenthaler's user avatar
1 vote
1 answer
88 views

How can I create a list of subcategories in a category showing 1 article for each subcategory?

I want to have a page listing each sub-category in a category but with each subcategory showing n number of caracters from the most recent article in each sub-category. The layout I am after is ...
Kirsten's user avatar
  • 157