Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
4ntz opened this issue Oct 20, 2014 · 1 comment
Open

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

4ntz opened this issue Oct 20, 2014 · 1 comment

Comments

@4ntz
Copy link

4ntz commented Oct 20, 2014

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.

@4ntz
Copy link
Author

4ntz commented May 4, 2015

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant