Iain Urquhart

Taxonomy 3

taxonomy:set_node

Typically when using Taxonomy you'll be calling multiple exp:taxonomy tags on the same template. Calling nav, crumbs, children, next / previous etc means you're adding the same common parameters to all those tags to set the current node.

If you're sick of repeating yourself with tree_id="x" and entry_id="x" then you'll find this tag useful for making your code a little more DRY.

{exp:taxonomy:set_node tree_id="1" entry_id="{entry_id}"}

Tag Parameters

Parameters available are identical to the get_node tag


Example

Want to say 'thank you'?

If you find any of my work useful, feel free to make a donation amount of your choosing via PayPal — or if you like, purchase a copy of Introvert from Devot-EE and you'll get something in return :)

↑ Back to top