Questions tagged [category]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
34 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 ...
0
votes
2answers
42 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 ...
0
votes
1answer
268 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 ...
0
votes
1answer
36 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 ...
0
votes
2answers
58 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 ...
0
votes
0answers
17 views

How to change default "Blog category" layout after going on link category from "Categories list"?

How to change default "Blog category" layout after going on link category from "Categories list"? My problem described on https://docs.joomla.org/...
0
votes
2answers
818 views

Need to display category dropdown for custom component on frontend site using joomla category extension

I have tring with the same thing but using following code but it not retuns any category what need to pass not getting for the same: $model_categories = JCategories::getInstance('Thirdparty'); $root =...
0
votes
1answer
45 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 ...
0
votes
0answers
21 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 == '...
0
votes
0answers
36 views

joomla article override: poster category

Still in my recovery of overrides, I try to display in the override of an article the category in which the article is located I test this nothing is displayed I must not retrieve the variables <?...
0
votes
1answer
56 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 ...
3
votes
2answers
327 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 ...
1
vote
1answer
20 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 ...
0
votes
0answers
41 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 ...
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-...
1
vote
2answers
296 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 ...
0
votes
1answer
54 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 ...
2
votes
1answer
154 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 ...
1
vote
1answer
50 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
1answer
366 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
0answers
54 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 ...
1
vote
2answers
296 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. ...
2
votes
1answer
305 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 ...
1
vote
0answers
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 ...
4
votes
1answer
786 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? ...
0
votes
2answers
38 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 ...
1
vote
2answers
428 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 ...
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 ...
1
vote
1answer
160 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 ...
3
votes
2answers
423 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 ...
0
votes
0answers
87 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 ...
1
vote
2answers
206 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
0answers
53 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 ...
0
votes
2answers
56 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 ...
1
vote
1answer
107 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
60 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
0answers
744 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::...
2
votes
4answers
126 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 ...
0
votes
1answer
54 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 ...
1
vote
1answer
72 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 ...
2
votes
1answer
409 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->...
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 ...
3
votes
1answer
281 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 ...
1
vote
1answer
460 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
0answers
144 views

301 Redirect all K2 Items (or Joomla! articles) to the Parent Category

I have a Joomla! + K2 site that uses categories as main landing pages with articles filling in various sections of the page. Thus, I don't want articles to be seen or indexed by Google individually. ...
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 . ...
4
votes
1answer
570 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 ...
8
votes
1answer
2k 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 ...