• REGISTRATION REQUIREMENTS:

    Your username here MUST MATCH your XenForo username (connected to your XF license).

    Once you have registered here, then you need to start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

Not Planned [XF1] New category field - css class to be added to this category and all children category

David Pugh

New Member
Showcase
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
category 2
category 3
category 4
category 5​
category 6
category 7​
category 8
category 9
category 10

Adding a class say "newclass1" into "category 2" would add class "newclass1" to div.showcaseItemContainer for categories "category 2" through to "category 7".

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
This suggestion has been closed. Votes are no longer accepted.
Back
Top