Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [category]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
25 views

How to implement and manage canonical URLs in Joomla 4.1

I want to implement and manage canonical URLs in Joomla 4.1. I know that Joomla does not provide an automatic way to generate this type of links, although they can be quite important for SEO. It is ...
user avatar
3 votes
2 answers
48 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&...
user avatar
0 votes
0 answers
36 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 ...
user avatar
  • 21
1 vote
1 answer
97 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. ...
user avatar
0 votes
0 answers
31 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 ...
user avatar
  • 1
1 vote
0 answers
27 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 ...
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 == '...
user avatar
  • 23
0 votes
2 answers
78 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 ...
user avatar
  • 178
0 votes
1 answer
210 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 ...
user avatar
0 votes
2 answers
93 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
45 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 ...
user avatar
0 votes
0 answers
45 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 ...
user avatar
0 votes
1 answer
38 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 ...
user avatar
  • 1
1 vote
1 answer
26 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 ...
user avatar
  • 113
0 votes
1 answer
47 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 ...
user avatar
  • 674
1 vote
2 answers
410 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 ...
user avatar
  • 3,491
0 votes
1 answer
72 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 ...
user avatar
  • 129
2 votes
1 answer
201 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 ...
user avatar
  • 135
1 vote
1 answer
58 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', '...
user avatar
1 vote
1 answer
511 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. ...
user avatar
  • 45
1 vote
2 answers
325 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. ...
user avatar
  • 294
1 vote
0 answers
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 ...
user avatar
  • 11
2 votes
1 answer
367 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 ...
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 ...
user avatar
  • 408
0 votes
2 answers
44 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 ...
user avatar
1 vote
2 answers
463 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 ...
user avatar
  • 1,829
0 votes
1 answer
285 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 ...
user avatar
0 votes
0 answers
88 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 ...
user avatar
  • 2,077
2 votes
3 answers
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 ...
user avatar
  • 1,369
1 vote
2 answers
218 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::...
user avatar
  • 111
1 vote
1 answer
173 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 ...
user avatar
  • 23
1 vote
0 answers
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 ...
user avatar
  • 111
0 votes
2 answers
59 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 ...
user avatar
  • 341
1 vote
1 answer
128 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 ...
user avatar
  • 167
1 vote
1 answer
61 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 ...
user avatar
  • 125
1 vote
0 answers
772 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::...
user avatar
  • 1,365
2 votes
4 answers
130 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 ...
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 ...
user avatar
1 vote
1 answer
75 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 ...
user avatar
  • 157
3 votes
1 answer
285 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-...
user avatar
  • 153
1 vote
0 answers
158 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. ...
user avatar
0 votes
2 answers
848 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 =...
user avatar
  • 131
2 votes
1 answer
438 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->...
user avatar
  • 1,371
0 votes
1 answer
71 views

Link to article changes depending on module

I've created some article, and I've create a some custom modules with the list of articles (by using the +article button for adding a specific article to the custom module). In a page I've added an ...
user avatar
  • 273
2 votes
1 answer
30 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"> ...
user avatar
  • 23
1 vote
1 answer
472 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 ...
user avatar
  • 11
3 votes
3 answers
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 . ...
user avatar
  • 1,365
4 votes
1 answer
837 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? ...
user avatar
  • 1,771
1 vote
1 answer
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 ...
user avatar
  • 41
0 votes
1 answer
69 views

link to a single article with catatogy

I am new to Joomla. I have created a module that shows some articles with a link to those articles. I fetched latest articals with : <?php $list= ModArticlesLatestHelper::getList($params); ...
user avatar