Questions tagged [category]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
14 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 ...
0
votes
0answers
18 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
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
2answers
45 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
73 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 ...
0
votes
2answers
63 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
1answer
37 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
0answers
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 ...
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 ...
1
vote
1answer
23 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
1answer
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 ...
1
vote
2answers
326 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
56 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
169 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
384 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
2answers
303 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
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 ...
2
votes
1answer
321 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 ...
0
votes
2answers
39 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
436 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 ...
0
votes
1answer
273 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
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
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
210 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
167 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 ...
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
57 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
113 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
747 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
55 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
73 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 ...
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-...
1
vote
0answers
145 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. ...
0
votes
2answers
827 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 =...
2
votes
1answer
419 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->...
0
votes
1answer
60 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 ...
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"> ...
1
vote
1answer
466 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 ...
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
794 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? ...
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 ...
0
votes
1answer
68 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); ...
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 ...
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 ...
0
votes
1answer
97 views

Creating a category from inside any 3rd party model

Hi I need some help creating a category from inside an upgrade method for a custom component. This is what I have tried to do, any help will be great! // start up the DB $db = JFactory::getDBO(); $...
1
vote
2answers
130 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 ...