Latest

+ Advanced Search

Subcategories on main page

Subcategories on main page
By
22/12/05 (Edited 07/03/21)

At Admin Panel -> Settings -> Switches you have a "show subcategories on main page" option. When enabled, each top level category on the front page of your site has a list of subcategories below it. This list of subcategories is cached so that they don't slow the page down much. The cache is automatically refreshed when subcategories are edited, but if for some reason subcategories are altered in a way that doesn't refresh the cache you can refresh it via the regenerate category option on the edit category page, or for all categories by regenerating categories at Admin -> Maintenance -> Regenerate.

To change the apperance, edit the HTML between <!-- BEGIN SUBSUB --> and <!-- END SUBSUB --> in your 'front page' and 'show listings in categories' templates (at Admin Panel -> Themes -> Manage Templates). The category template variables that can be used in this area are restricted to ones which are cached. If you want to use more, use the $subhtmlfields tweak to cache additional fields.

Warning: If you have many thousands of categories, you may need to turn the subcategories on main page switch off to prevent very slow page loads when the cache refreshes.





Rating
Views 1170 views. Averaging 0 views per day.
Similar Listings