Iain Urquhart

Taxonomy

taxonomy:get_sibling_ids

Fetches the entry_ids of a node's siblings.

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

Example output:

2|4|14

Tag Parameters

tree_id=

tree_id="1"

The id of the tree you want to fetch. This is a required parameter.

entry_id=

entry_id="{entry_id}"

The entry_id of the node being requested. This is a required parameter.

include_current=

include_current="yes"

By default, the current entry_id won't be displayed, by adding this parameter it will add the current entry_id to list the entry ids for all siblings on this level


Example Usage

See the example usage for the {exp:taxonomy:get_children_ids} for an example of how you can use this tag to pass entry_ids to an embed for exp:channel:entries processing.

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