7
votes
Accepted
Determining if on a Category Blog page or Article page
You're going to want to use JInput for this.
$jinput = JFactory::getApplication()->input;
$option = $jinput->getCmd('option'); // This gets the component
$view = $jinput->getCmd('view'); ...
- 26.7k
6
votes
Accepted
How to get Categories of custom extension or third party component
After doing some research, it turns out that the third party component I am using doesn't have a file created as ..\components\com_thirdparty\helpers\category.php which is required to implement a ...
- 448
5
votes
Accepted
Creating multiple layout overrides for category blog layout
You can just duplicate your blog.php override and rename it (e.g. shop.php). At that point it will be available as an alternative layout for Category Blog. You can also add child layouts, like ...
- 2,160
5
votes
Accepted
Does Joomla 3 automatically create a non-sef url when a category is created?
It is best to not think of Joomla as "creating these links" and instead recognizing that there are a variety of urls that Joomla can understand and load a page from.
The non-sef url represents the ...
- 4,056
4
votes
Accepted
Adding custom fields to com_content category
Yes, you can add custom fields to the com_content (category? I assume you intend component?):
https://docs.joomla.org/Adding_custom_fields_to_core_components_using_a_plugin
https://zunostudios.com/...
- 130
4
votes
Unable to hide subcategories in category blog layout
As @Sasi varna kumar showed with the screenshot in his answer, what you need to adjust is what articles should be shown in your blog layout.
The settings you were adjusting are about showing ...
- 19.6k
4
votes
Accepted
Will changing Article Category in Bulk with MySQL affect the integrity of assets table?
Yes it will.
Instead go to:
Joomla! Administrator
-> Content
-> Articles
Click the tick box to tick all article.
Then click 'Batch' up the top.
Under:
To Move or Copy your selection please ...
- 440
4
votes
Administrators cannot edit articles after Joomla update
Well then... I would try ACL Manager's famous Fixing Assets command...
ACL Manager | Diagnostics tab, then (Fix Orphan Assets / Add Missing Assets / Fix Assets Issues / Fix Admin Access Conflicts) ...
- 3,007
4
votes
How can I create a page that links to all articles with fake long titles?
You can achieve this with the built in functionality of Joomla.
Create a Category Blog Menu Item and deactivate title under the options tab.
While creating an article, write first your fake title ...
- 1,180
4
votes
Accepted
Remove 'There are no articles in this category.' Text
Got to;
content > articles > options > category tab > No Articles Message > hide / show
- 158
3
votes
Accepted
Unable to hide subcategories in category blog layout
Menu - Category Blog - Blog layout options
Did you check this setting too ? in the menu options ?
- 158
3
votes
Accepted
What does unpublishing a category do?
your supposition that articles in that category are still publicly viewable isn't true.
Unpublishing a category, makes the articles in that category unavailable for viewing to site visitors/users.
...
- 130
3
votes
Accepted
3 column layout will not display after settings are made
That is because you haven't created the appropriate CSS support for 3 columns in your template.
For example, at the home page (or whatever it is this page: www.scottiev.com/R ), if you want to show ...
- 19.6k
3
votes
How Can I Get Rid Of Category Pages in Joomla
This post highlights a common problem with Joomla and other CMSes. Without the correct setup many different URLs can be indexed for the same page.
Joomla applies an ID for each category and each item....
- 320
3
votes
Accepted
Joomla! - Give Blog Categories Classes
To add a special "category" class to the articles of the featured articles menu item, you need to create a template override.
Simply, copy the : default.php file, located in:
components/com_content/...
- 19.6k
3
votes
Uncategorized category in Joomla 2.5
First of all, Joomla 2.5 is not supported anymore. If you're just getting started with Joomla, I highly recommend you begin with Joomla 3.
when I deleted [..the uncategorized category..], I couldn'...
- 13.3k
3
votes
Creating new articles, suddenly a /2-uncategorised/ page is created with all these articles in a list
Check to see if you have your SEF URLs turned on and configuration correct. By default you should be able to access the URLs you listed, that is the default Joomla routing kicking in. 2-uncategorised ...
- 1,767
3
votes
Accepted
How to query the categories table and get a resultset with my stored order?
In #__categories table ordering field is named as lft. So, this column saves the ordering of the categories.
If you want to look more into code side then you can see:
administrator/components/...
- 1,375
3
votes
Administrators cannot edit articles after Joomla update
We have encountered the exact same issue, and it turned out to be indeed, a corruption in the #__categories and in the #__assets table where the entries for certain categories pointed to the wrong ...
- 3,186
3
votes
Accepted
Is it possible to insert a category list view inside an article?
One option would be to use the Articles - Category module that's shipped with Joomla.
Create module
Set all the options you require
Assign it to a custom position, e.g category-test
In your article, ...
- 26.7k
3
votes
Accepted
How to set/change default article category in Joomla 3.10?
Yes, the default category is the first category in the list.
To change the default category, go to Content > Categories. Click on the first column so that the order of the categories is on ordering....
- 1,763
2
votes
Get number of articles inside category
You can ask via SQL. It should be something like
$db = JFactory::getDbo();
$query = $db->getQuery(true);
$query->select('COUNT(*)');
$query->from($db->quoteName('#__content'));
$query-&...
- 368
2
votes
Display readmore link in all blog entrys
I found the answer.
There is another file controling the frontpage blog.
After deleting if ($params->get('show_readmore') in components/com_content/views/featured/tmpl/default_item.php too I got ...
- 221
2
votes
Accepted
mod_articles_category Override - Adding category link outside of loop
It's not very clear what you are trying to do.
This module can display articles from many categories and also works in various modes.
In the case of multiple categories, what is the one that you ...
- 19.6k
2
votes
Joomla! - Give Blog Categories Classes
There's a very easy way. In menu manager it's possible to assign custom css classes to a menu item. In Protostar this page class will be applied directly to the component container, in this case <...
- 2,160
2
votes
Joomla! - Give Blog Categories Classes
You have a few options, you can duplicate your current template and rename it. Then you can alter the css and add extra classes as required, then assign this template to your desired category pages. ...
- 3,543
2
votes
Where to edit category blog layout for alternative menu item
The best way for make your own version is making an override.
First, here some docs for make the override step by step: https://docs.joomla.org/J3.x:How_to_use_the_Template_Manager
Now you need ...
- 1,372
2
votes
How to get the link of a category for item
Use ContentHelperRoute to get article category url. It can be one like this this article view:
JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->catslug))
If you need this out of ...
- 1,174
2
votes
Accepted
Show message Cannot Delete item : foreign key
You should implement the similar check as done for categories in CMS content plugin.
...
...
...
// See if this category has any content items
$table = '#__table_name';
$count = $this->...
- 4,132
2
votes
Best way to show a list of categories that shows also all subcategories?
In Joomla 3.x, you could use the Joomla's native Categories module.
Your example shows 3 categories, so I would load three modules from within the article, and configure these modules to display the ...
- 177
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
category × 90joomla-3.x × 45
articles × 26
subcategories × 10
component × 8
url × 7
layout × 6
overrides × 5
template-override × 5
menu × 4
com-content × 4
php × 3
custom-component × 3
menu-item × 3
custom-field × 3
seo × 3
extensions × 2
administrator × 2
k2 × 2
joomla-3.6 × 2
form × 2
module-display × 2
acl × 2
joomla-4.x × 2
search × 2