Questions tagged [category]

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

Filter by
Sorted by
Tagged with
8
votes
1answer
1k views

How to get Categories of custom extension or third party component

I have a thirdparty component which stores its categories in #__categories table. -----+----------------+-----------------------+-----------------------+----- ... | extension | title ...
5
votes
2answers
2k views

How Can I Get Rid Of Category Pages in Joomla

I have created several categories in my Joomla site to keep my articles organised but I have noticed that Google can see these categories and the category id and name is being added randomly to the ...
4
votes
1answer
5k views

Creating multiple layout overrides for category blog layout

I have looked at other questions on this matter, but would like to be clear on what is the 'correct' approach to this. Example: https://stackoverflow.com/questions/13715665/joomla-override-category-...
4
votes
1answer
568 views

Does Joomla 3 automatically create a non-sef url when a category is created?

In sh404sef url manager I noticed that a sef url had been created for a page I had no menu item for. The non-sef url was index.php?option=com_content&id=27&lang=en&view=category I've ...
4
votes
1answer
737 views

How to query the categories table and get a resultset with my stored order?

In my Joomla project, I have one main category which contains a few subcategories. I have rearranged the ordering in the backend by drag and drop. How can I query the database to check the ordering? ...
3
votes
3answers
2k views

Administrators cannot edit articles after Joomla update

After Joomla update to 3.6.2 the user group Administrator cannot edit some articles while some articles can be edited. Super Users can edit all the articles. I think the issue is with the category . ...
3
votes
1answer
2k views

Determining if on a Category Blog page or Article page

I have a shop setup using J2Store, which sets up products as articles. On the main layout I use the Category Blog layout. I have customised the addtocart.php file to add a View Product Information ...
3
votes
3answers
950 views

Joomla! - Give Blog Categories Classes

First off, I'm a PHP noob :/ just to get that out of the way My goal is to give each Joomla! category a class, so I can pre-style layouts for my client, and when they choose a Category, they would ...
3
votes
2answers
95 views

Uncategorized category in Joomla 2.5

I just started to use Joomla 2.5 and it has this uncategorized category. I read that it should be like any other category- you can re-name it, delete it and so on. I was able to change its name, but ...
3
votes
3answers
6k views

Best way to show a list of categories that shows also all subcategories?

I have been searching already for a while on how to show a list of categories that shows also subcategories, something like this: In this case, the list of contents only shows a subcategory level (or ...
3
votes
2answers
2k views

Get number of articles inside category

I wanted to get the number of articles inside category id=13. How can I achieve this with PHP? I've been searching and nothing.
3
votes
1answer
266 views

Is There a Way to Display the Rating in the Category List?

I really like the native implementation of article rating. I want to display an overview of all the articles including the ratings. I thought I can activate the 5 star rating view on the category-...
3
votes
2answers
1k views

How do I sort articles by article order in Joomla 3?

I've got a category with two sub-categories, the articles appear to be grouped in the back end by sub-category and it doesn't allow me to set the article order to mix them. Is this normal? It's ...
3
votes
2answers
272 views

Where to edit category blog layout for alternative menu item

I've made my own version of blog.php, blog_item.php and blog.xml for my own category blog menu item. And I've changed a few things so far. But I need to change it so that the intro image is above ...
3
votes
2answers
392 views

Joomla 3 helloworld component category

After i follow the Joomla "Developing an MVC Component" document until step 15- "Adding ACL" everything works. Then I tried add a new view "category", but it did not work. Here is my code: In admin ...
2
votes
4answers
108 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 ...
2
votes
2answers
2k views

Unable to hide subcategories in category blog layout

I have a menu item of the category blog type, which is pointing to a category which has category children. I have configured this menu item and the category manager options to hide all subcategories, ...
2
votes
2answers
413 views

Creating new articles, suddenly a /2-uncategorised/ page is created with all these articles in a list

I've added some articles to a joomla website. I copied exisiting articles and then changed the titles/text/links/meta. All the articles are in the category 'uncategorised'. At first, the links were ...
2
votes
1answer
67 views

Will changing Article Category in Bulk with MySQL affect the integrity of assets table?

I need to change the category of around 100 articles from CatA with id 1 to CatB with id 2. Both categories are created and there are 100 Menu Items that point to the Articles currently in Category A. ...
2
votes
1answer
1k views

Adding custom fields to com_content category

I have a component which mainly deals with Joomla content articles. I want to add custom fields to Joomla core category. Is there any chance to add custom fields into category through a plugin or ...
2
votes
2answers
10k views

How to get the link of a category for item

I searched google and read many articles but no luck, is there a way to get the link of a category for joomla 3.3.6 item/article. More details: I'm building a custom theme on Joomla 3.3.6 I have ...
2
votes
1answer
156 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 ...
2
votes
1answer
352 views

Get parent category tags in template override

I am building a template override for the default featured blog layout. Item tags are displayed with : <?php if ($info == 0 && $params->get('show_tags', 1) && !empty($this->...
2
votes
2answers
137 views

How to change the order of the items on the blog-layout page for “page-header”?

I 'm trying to change the order of the items showing in the <div class="page-header">, where the Title comes before the category name, but I want the category name to show before the title of ...
2
votes
1answer
56 views

Show message Cannot Delete item : foreign key

I am using foreign key mapping in my component. Now, i want to add an error message 'Cannot delete item' whenever user tries to delete the parent item. Just like we see in the category manager '...
2
votes
1answer
269 views

Display readmore link in all blog entrys

I am trying to get a readmore link after every single blog entry on a Joomla 3.2.3 Page. I already edited components/com_content/views/category/tmpl/blog_item.php to take out the php if ($params->...
2
votes
1answer
29 views

Create plugin to edit category form

i'm trying to edit joomla's category form with a plugin following this guide https://docs.joomla.org/Creating_a_profile_plugin xml file <extension version="3.1" type="plugin" group="category"> ...
2
votes
1answer
980 views

Joomla - Modifying default category list view (through overrides?)

I'm building a site for a friend and I should state that this is not what I'm doing for living. I just started working with Joomla a few days ago. Everything is good so far, except I'm stuck at one ...
2
votes
3answers
739 views

New menu items lead to 404 - given bad URL - version 3.4.0

Running Joomla 3.4.0 SEF = on URL writing = on I have no idea but for some reason I cannot create any new menu items without them either showing a 404 or strangely being directed to the weblinks page?...
2
votes
1answer
85 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 ...
2
votes
0answers
33 views

Layout Override shows up as menu Item but not as category layout [duplicate]

I have created a layout override starting from the blog template and added it in mytemplate\html\com_content\category : galleries.php galleries_item.php galleries.xml I can create a new menu item ...
1
vote
2answers
106 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 ...
1
vote
2answers
329 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 ...
1
vote
3answers
1k 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 ...
1
vote
2answers
114 views

What does unpublishing a category do?

If you go to "Content", "Category Manager", you can unpublish categories by clicking on the green tick icon. What's the point of doing so? The articles in that category are still published and still ...
1
vote
2answers
197 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. ...
1
vote
2answers
402 views

3 column layout will not display after settings are made

I have created my own template and want my category articles to display in 3 columns. I have set these setting to display in 3 columns in the global configuration and the menu settings. It all still ...
1
vote
1answer
202 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. ...
1
vote
1answer
88 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 ...
1
vote
1answer
53 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 ...
1
vote
1answer
50 views

Joomla!3.6.x - BDD - ACL inconsistent

I have got a too amazing feature regarding ACL : a category and a sub-category for which ACL of three user groups is inconsistent. One group's got herited right at sub-category however it hasn't right ...
1
vote
2answers
958 views

mod_articles_category Override - Adding category link outside of loop

I have a custom layout for mod_articles_category. I am trying to add the Category link outside that this Articles Category item links to, but outside of the loop of $items. I have tried this, but ...
1
vote
1answer
18 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 ...
1
vote
1answer
36 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', '...
1
vote
2answers
186 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::...
1
vote
1answer
67 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 ...
1
vote
1answer
446 views

Redirect or add missing category alias to URL in Joomla 3.6

how can I redirect a URL in Joomla 3.6 from: domain.tld/articleid-my-seo-title.html to domain.tld/category-alias/articleid-my-seo-title.html I need to do this because Google sometimes seems to ...
1
vote
2answers
125 views

Displaying articles in categories

Joomla 3.4.8. I have a fairly simple category hierarchy of meeting minutes: - Minutes - 2016 Minutes - 2015 Minutes - 2014 Minutes etc. Minutes are each articles with the appropriate (sub)category ...
1
vote
1answer
72 views

Problems with Search

Im new to Joomla and trying to figure out how to use search. I have three categories: French level 1, French level 2, French level 3. When I do search for French level 1, all three categories come up ...
1
vote
1answer
529 views

Module that will display 10 random featured articles with full read more text

Ive spent quite a few hours looking but have been unable to find so far, but am thinking this must surely be available. I just need a Joomla Module that will display random featured articles from a ...