XF 2.2 Active tab in public nav. How?

Anatoliy

Well-known member
So I created a new tab and linked it to a forum node. Everything works fine except it doesn't look "active" (the "Forums" tab is highlighted).
Can't figure this one out. Please help.
 
Solution
This is one way of doing it.

Create the navigation entry with a blank parent navigation entry.

Edit the forum_view template and add this at the top:
HTML:
<xf:if is="$forum.node_id == 8">
    <xf:page option="section">navigation_id</xf:page>
</xf:if>

Change the 8 to the forum node ID.

Change the navigation_id to the navigation entry ID.
This is one way of doing it.

Create the navigation entry with a blank parent navigation entry.

Edit the forum_view template and add this at the top:
HTML:
<xf:if is="$forum.node_id == 8">
    <xf:page option="section">navigation_id</xf:page>
</xf:if>

Change the 8 to the forum node ID.

Change the navigation_id to the navigation entry ID.
 
Solution
This is one way of doing it.

Create the navigation entry with a blank parent navigation entry.

Edit the forum_view template and add this at the top:
HTML:
<xf:if is="$forum.node_id == 8">
    <xf:page option="section">navigation_id</xf:page>
</xf:if>

Change the 8 to the forum node ID.

Change the navigation_id to the navigation entry ID.
Epic, I had exactly the same problem on my forum for some time and this has helped to fix it totally. Legend. :cool:
 
Back
Top Bottom