Jump to content

Menu en 2 bloc


Recommended Posts

hello, 

 

Je cherche à faire un menu en 2 partie ou 2 bloc. 

C'est à dire que dans mon Header, je souhaite obtenir un bloc avec 2 liens, puis un Logo, puis les 2 autres liens du menu. 

Cela donne le zoning ci-joint. 

 

Quelqu'un a déja traité ce sujet ? 

 

Merci ! 

post-99952-0-17811100-1392918071_thumb.jpg

Edited by julesfromparis (see edit history)
Link to comment
Share on other sites

> Réponse trouvé : 

 

(Il manque juste de modifier le nom du menu (2) dans le fichier TPL pour avoir deux menus bien distincts. 

 

Voilà :) 

 

 

I was able to duplicate this module. the steps i took is below.

 

i went into the

 

 

I changed the followings:
folder name: blocktopmenu2
tpl name: blocktopmenu2.tpl
php name:blocktopmenu2.php

php name:menutoplinks2.class
php file code:

 

in blocktopmenu2.php i did the following:

- search all "menutoplinks" and replace with "menutoplinks2"

- change "class blocktopmenu extends Module" to "class blocktopmenu2 extends Module"

- search and change all  "blocktopmenu.tpl" to "blocktopmenu2.tpl"

- search and chage all "MOD_BLOCKTOPMENU_ITEMS" to "MOD_BLOCKTOPMENU_ITEMS2"

- search and change all "MOD_BLOCKTOPMENU_SEARCH to "MOD_BLOCKTOPMENU_SEARCH2"

- search and replace all "linksmenutop" to "linksmenutop2"

- search and replace all "linksmenutop_lang" to "linksmenutop2_lang"

 

in menutoplinks2.class change:

- search and replace all "linksmenutop" to "linksmenutop2"

- search and replace all "linksmenutop_lang" to "linksmenutop2_lang"

- "class MenuTopLinks2" to "class MenuTopLinks2"

 

And finally if you have a theme, yo need to go into ../themes/theme_name/module and make a copy of the "blocktopmenu" folder and rename it "blocktopmenu2"

 

and i also had to go into ../themes/theme_name/css/module and make a copy of the "blocktopmenu" folder and rename it "blocktopmenu2"

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...