a wee weblog, since 2006

taxonomy:
set_node

20Jul
2013

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

As captured 18 February 2021 · The archived original