a wee weblog, since 2006

taxonomy:
next_node

20Jul
2013

Get information about the next sibling node (and it's associated entry) for a given node.



Tag Parameters

tree_id=

tree_id="1"

The id of the node's tree you want to fetch.

entry_id=

entry_id="{entry_id}"

The entry_id of the node being requested.

node_id=

node_id="32"

The node_id of the node being requested.


Tag Variables

These varables are available between the tag pair

VariableExample Output / Notes
{next_node_node_id}22 The Node ID for the next node
{next_node_lft}12 The lft value for the next node
{next_node_rgt}12 The rgt value for the next node
{next_node_depth}2 The depth of the next node
{next_node_parent}23 The node_id of the next node's parent
{next_node_label}About The node's label according to Taxonomy
{next_node_entry_id}12 The next node's associated entry_id
{next_node_channel_id}4 The channel_id of next node's associated entry
{next_node_author_id}1 The author_id of next node's associated entry
{next_node_entry_date}1370658900 The timestamp entry date of next node's associated entry
{next_node_url}http://example.com/pages/foo The URL of the next node
{next_node_my_custom_field}Allo Allo The output of your taxonomy custom field, note the short name is prefixed with next_node_

As captured 18 February 2021 · The archived original