[ckan-dev] Organization hierarchy

Stefan Oderbolz stefan.oderbolz at liip.ch
Wed Aug 10 15:09:59 UTC 2016


Thanks for the code!

It all works well, the links point to the proper locations. My problem is
> that the link_for I added for the upstream organizations generates a
> hiperlink in shown in bold, for example:
>
> <a class=" active" href="/organization/lfi">LFI</a>
>
> Is there a possibility to avoid thet the class "active" is added to the
> link?
>

There is an argument called "suppress_active_class" which does exactly that:

{% link_for parent_node.title|truncate(35), controller='organization',
action='read', id=parent_node.name, *suppress_active_class=true* %}

- Stefan

-- 
Liip AG  // Limmatstrasse 183 //  CH-8005 Zürich
Tel +41 43 500 39 80 // GnuPG 0x7B588C67 // www.liip.ch
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20160810/ce7732f5/attachment-0003.html>


More information about the ckan-dev mailing list