XF 2.3 Page node menu, is-selected - How to?

I manually added the node_id and it works like that:
HTML:
<a href="/-/podcasts/" class="blockLink {{ $page.node_id == 71 ? 'is-selected' : '' }}">{$page.title}</a>

How can i automatically get the node ID?
How can i automatically get the node URL?

If i can get this too variables maybe i will be able to create a loop.
Thanks.
 
I use this for the link:
HTML:
<a href="/-/{$page.node_name}/" class="blockLink {{ $page.node_id == 71 ? 'is-selected' : '' }}">{$page.title}</a>

I need the ID now and have to learn how to create a loop...
Is creating a HTML loop needs PHP?
 
Last edited:
Back
Top Bottom