WebsiteBaker Community Forum
WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: Shooye on May 28, 2008, 02:16:47 PM
-
Hello everybody.
i'm using WebsiteBaker since few months and it works fine !
I've a little problem anyway :
I want to modify the show_menu2 function to add a class="pde" on the root ul element.
I try to explain :
when i call <?php show_menu2(0, SM2_ROOT, SM2_ALL, SM2_ALL|SM2_NUMCLASS|SM2_PRETTY, false, false, '<ul class="mark [class]">'); ?> for exemple the result is :
<ul class="mark menu-top menu-0">
<li class="menu-0 menu-expand menu-parent menu-first"><a href="http://127.0.0.1/wb" target="_top">Dossier</a>
<ul class="mark menu-1">
<li class="menu-1 menu-current menu-first"><a href="http://127.0.0.1/wb/pages/dossier/rubrique-1.php" target="_top">Rubrique 1</a> </li>
<li class="menu-1 menu-expand menu-sibling menu-last"><a href="http://127.0.0.1/wb/pages/dossier/rubrique-2.php" target="_top">Rubrique 2</a>
<ul class="mark menu-2">
<li class="menu-2 menu-first menu-last"><a href="http://127.0.0.1/wb/pages/dossier/rubrique-2/fiche-1.php" target="_top">fiche 1</a> </li>
</ul>
</li>
</ul>
</li>
<li class="menu-0 menu-expand menu-last"><a href="http://127.0.0.1/wb/pages/actu-sociale.php" target="_top">Actu Sociale</a>
<ul class="mark menu-1">
<li class="menu-1 menu-first menu-last"><a href="http://127.0.0.1/wb/pages/actu-sociale/rubrique-1.php" target="_top">Rubrique 1</a> </li>
</ul>
</li>
</ul>
but i want this result :
<ul class="mark menu-top menu-0 pde">
<li class="menu-0 menu-expand menu-parent menu-first"><a href="http://127.0.0.1/wb" target="_top">Dossier</a>
<ul class="mark menu-1">
<li class="menu-1 menu-current menu-first"><a href="http://127.0.0.1/wb/pages/dossier/rubrique-1.php" target="_top">Rubrique 1</a> </li>
<li class="menu-1 menu-expand menu-sibling menu-last"><a href="http://127.0.0.1/wb/pages/dossier/rubrique-2.php" target="_top">Rubrique 2</a>
<ul class="mark menu-2">
<li class="menu-2 menu-first menu-last"><a href="http://127.0.0.1/wb/pages/dossier/rubrique-2/fiche-1.php" target="_top">fiche 1</a> </li>
</ul>
</li>
</ul>
</li>
<li class="menu-0 menu-expand menu-last"><a href="http://127.0.0.1/wb/pages/actu-sociale.php" target="_top">Actu Sociale</a>
<ul class="mark menu-1">
<li class="menu-1 menu-first menu-last"><a href="http://127.0.0.1/wb/pages/actu-sociale/rubrique-1.php" target="_top">Rubrique 1</a> </li>
</ul>
</li>
</ul>
So i want just for the first ul element to add the pde class.
Is it possible ?
If someone couls take a look to this problem because i have looked in the show_menu2 function and i don't know how to do that...
It's pretty hard to explain so if someone could find a solution.
Best regards,
RĂ©mi MARLAIR
-
it's ok I have found a solution to my problem.
-
it's ok I have found a solution to my problem.
Well thanks a million for sharing that solution with us. You're a great help.