WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.8 is now available!


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Show_menu2 - want to change the function
  • Print
Pages: [1]   Go Down

Author Topic: Show_menu2 - want to change the function  (Read 5567 times)

Offline Shooye

  • Posts: 15
Show_menu2 - want to change the function
« 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
Logged

Offline Shooye

  • Posts: 15
Re: Show_menu2 - want to change the function
« Reply #1 on: May 28, 2008, 03:11:47 PM »
it's ok I have found a solution to my problem.
Logged

Offline CodeALot

  • Posts: 579
  • Gender: Male
Re: Show_menu2 - want to change the function
« Reply #2 on: June 19, 2008, 01:49:13 PM »
Quote from: Shooye on May 28, 2008, 03:11:47 PM
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.
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Show_menu2 - want to change the function
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2