Extension, Fieldtype, Module

Archived
Forum
(read-only)

Taxonomy

ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From iain

     

root_node_entry_id is not working

General

akrug23
akrug23

I am trying to use the root_node_entry_id param and it is still showing the tree from the root not from the node entry id.

{exp:channel:entries
    channel
="events"
    
limit="1"}
    
    {exp
:taxonomy:nav 
        tree_id
="2"
        
root_node_entry_id="{entry_id}"}
        
        
<li> <a href="{node_url}">{node_title}</a{children} </li>

    
{/exp:taxonomy:nav}

{
/exp:channel:entries} 

I have the taxonomy field in the channel and the entry is associated with the node in the menu.

Am I doing something wrong?

Thanks

iain
# 1
Developer
iain

Can you confirm the entry is correct by updating the your code to the following, and pasting the resulting output on a new reply:

{exp:channel:entries
    channel
="events"
    
limit="1"}
    
<p>Current entry id is{entry_id}</p>

    
{exp:taxonomy:nav tree_id="2"}
        
<li> <a href="{node_url}">{node_title} {node_entry_id}</a{children} </li>
    
{/exp:taxonomy:nav}

{
/exp:channel:entries}