For anyone interested, I have finally solved this, in a not very dynamic way.
In my case, I wanted to display the categories of my blog entries as a submenu.
I thus excluded my blog page from the menu in the page manager, and modified my menu template like this:
Code: Select all
(...)
{/foreach}
{repeat string="</li></ul>" times=$node->depth-1}</li>
<!-- addition -->
<li>{cms_selflink page="blog_en"}
{if $friendly_position >= "1.5"}
{CGBlog action="browsecat"}
{/if}
</li>
<!-- end addition -->
</ul>
{/if}
As you can guess, my blog page is located at the friendly position 1.5 of my page structure. So, it works, the limitation is that I have to modify the code if I move and/or add pages and I have to have my blog page at the bottom of my menu.
I had to tweak this a little bit so as to include my three languages architecture, but it is beyond the scope of the original post I guess (anyways pretty simple, it justs involves one more level of {If} with
lang_parent in addition to
friendly_position.
hope it can be of some help. If anyone has a more dynamic solution, I'd be happy to hear it.
Cheers,
Colin