How to style active item and active category in universal module

  • Published by
    George Papadakis
  • Last modified
    30 September 2014
  • Up to date
    Yes
  • Profile concerned
    Webdesigner
  • Concerns
    Modules
  • Since Version
    2.0
  • Voting
    Average rating
    1 vote
    • 1
    • 2
    • 3
    • 4
    • 5
  • Favourites
    581 How to style active item and active category in universal module /documentation/tutorials-english/76-modules2/581-how-to-style-active-item-and-active-category-in-universal-module.html

There are occasion that you would display the currently active item or currently active category with universal module.

These are depicted in the module via special CSS classes:


ITEM VIEW:
module file: (tmpl/TEMPLATE_NAME.php)

-- if module lists items (active item):
  .fcitem_active {...}

-- if module lists cats (category of active item):
  .fcitemcat_active {...}


CATEGORY VIEW:
module file: (tmpl_common/category.php)

-- if module lists cats (active category):
  .fccat_active {...}