Following on from this thread. Display/Hide custom fields in specified category/categories in article views
Add the contents of this field to the classes of div.showcaseItemContainer element when an item is rendered.
This would make writing entries into extra.css very much easier, if you have a lot of categories.
ie
category 1
Adding a class say "newclass2" into "category 3" would add class "newclass2" to div.showcaseItemContainer for categories "category 3" through to "category 5".
Add the contents of this field to the classes of div.showcaseItemContainer element when an item is rendered.
This would make writing entries into extra.css very much easier, if you have a lot of categories.
ie
category 1
category 2
Adding a class say "newclass1" into "category 2" would add class "newclass1" to div.showcaseItemContainer for categories "category 2" through to "category 7".category 3
category 8category 4
category 5
category 6category 5
category 7
category 9
category 10
category 10
Adding a class say "newclass2" into "category 3" would add class "newclass2" to div.showcaseItemContainer for categories "category 3" through to "category 5".
Upvote
0