Thank you very much Heliotrope !
I have been playing with the tips you gave me. I will describe what I’ve done precisely so that other beginners can have profit :
1. I have created a TV name subMenuTitle in my folder (presentation, doc1) in which I can fill the title of the sub menu
2. I have added a chunck for outer WayFinder template :
<ul id="sub-menu">
[+phx:if=`[*isfolder*]`:is=`1`:then=`<li class="active"><a href="[~id~]">[[GetField? &docid=`[*id*]` &field=`subMenuTitle`]]</a></li>`:else=`<li><a href="[~parent~]">[[GetField? &docid=`[*parent*]` &field=`subMenuTitle`]]</a></li>`+]
[+wf.wrapper+]
</ul>
In this chunk I used PHx as recommended by Heliotrope (I did not understand yet the functionnalities of this snippet, but I used it like a expression evaluator). If I am on the folder I’m getting its own submenu title, if I’m in a sub-menu, I’m getting the folder subMenuTitle.
Something is not working : my [~id~] and [~parent~] are not interpreted and replaced by link to the documents. Why this ?
Anyway, I think that using FirstChildRedirect snippet is a better solution, easier to configure and logical (I’m going to test it). Is there a documentation about most useful snippets with example of use ? (in which a beginner like me could have heard about FirstChildRedirect for example)
Thanks.