(Added additional core hack that may be needed)
m (−Category:Tips and tricks 1.5; −Category:FAQ; −Category:Category Management; +Category:Archived version Joomla! 1.5 using HotCat)
|(4 intermediate revisions by 3 users not shown)|
|Line 23:||Line 23:|
In Jooomla! 1.5, a Section List layout presents a list of Categories for this section. When you select a Category link, a Category List layout shows for the this Category.
Normally, when you add a Menu Item for a Category List, you have the option to set a number of parameters to control the details of how the page will display. For example, you can set whether to show or hide column headings, date, filter table, and so on. However, when you set up a Section List Menu Item, there is no place to enter parameters to control these options for the Category List pages that show after you drill down.
So, what happens? It depends on whether you have a Category List or Category Blog Menu Item for this Category. If you do, then Joomla! will use the parameters from that Menu Item. Otherwise, Joomla! will use default values when you drill down to a Category List from the Section List.
You can control how this drill down works by creating separate Category List Menu Items for each Category in the Section. Here is an example.
Now, when you drill down from the Dogs Section List to Collie or Beagle, the parameter values from the Collie or Beagle Menu Items will be used to control the display. Note that, if you add a new Category in the future (for example, Poodle), you will also have to add a new Category List Menu Item for this new Category.
Probably you may also need a hack in core file /components/com_content/views/section/view.html.php (line 96):
$category->link = JRoute::_(ContentHelperRoute::getCategoryRoute($category->slug, $category->section).'&layout=default');
You should remove ".'&layout=default'" text, so the line will become:
$category->link = JRoute::_(ContentHelperRoute::getCategoryRoute($category->slug, $category->section));