Skip to content

Feature Request: Set active class for <li> #3

Open

Description

@4ntz

Would be nice to be able to set a active class like you can do with Wayfinder.
For example: &activeCls=´active´ renders to < li class="active" >
Then one could style the active Link.

Activity

  1. 4ntz commented on May 4, 2015

    @4ntz
    Author

    Something like this works:

    [[+arc_year:is=`[[+year]]`:then=`active`? &dateFormat=`%Y`]]
    

    So my &tpl Chunk looks like this now:

    <li class="[[+cls]] [[+arc_year:is=`[[+year]]`:then=`active`? &dateFormat=`%Y`]]">
    <a href="[[+url]]" title="[[+date]]">[[+date]] ([[+count]])</a>
    </li>
    
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions