I've got two categories, say "Cat A" and "Cat B" and both of them are associated with a menu item so that a category list can be displayed.

Now, I want to display Cat A in list style, which is the default style, and display Cat B using thumbnails as displayed below, how can I achieve this?enter image description here


You can define a "smart" layout override. The new "smart" layout can choose the right layout according the current category.

Understanding Output Overrides


Module Layout Overrides


Following the example, you can create:

      /mod_latest_news   (this directory matches the module directory name)
        default.php   ("smart" layout, loads catA or catB)
        default-catA.php   (catA layout)
        default-catB.php   (catB layout)
  • can you provide more info as i am really new to joomla
    – Tony Leung
    Jun 20 '14 at 9:27
  • Sure, check the references
    – Anibal
    Jun 20 '14 at 12:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.