That’s perfect to populate the menu, but what I mean is to put a “you are here” class on the menu link of the actual page.
Something like this :
<div {if last_segment == 'url_title'}class="current"{/if}><a href="http://{url_title_path=csss-hsm/statique/cssshsm/portrait/}">{titre_navigation_statique}</a></div>
But it doesn’t work…
So let’s say that when you are at “csss-hsm/statique/cssshsm/portrait/” you get a menu with 3 links : 1, 2 and 3
When you are at : csss-hsm/statique/cssshsm/portrait/3, I want the 3 link in the menu to get the “current” class…
Note that the freebie add-on makes the segment 3 and 4 invisible to EE… They are called freebie_3 and freebie_4 instead of segment_x…