WebsiteBaker Support (2.8.x) > Templates, Menus & Design

highlight current page using showmenu2

<< < (2/3) > >>

erpe0812:
By using breadcrumb code:
http://www.websitebakers.de/sm2/pages/enterprise.php

rgds

erpe

ivanisevic82:
Ok boys, this problem is solved too! :D

Now really the last one :D ...

Here the link at the template I'm building:
http://www.ivanisevic82.com/pages/glass.php

As you can see in the top horizontal menu there are the parent; in the right vertical menu there are the children.

*** IMPORTANT *** You can use only the page "GLASS"; "PAGINA MADRE" like "Parent" and "PROVA1", "PROVA2" and "PROVA20" like children. Do not use other page because they are for a different job.

Let's go to my problem...

If you stay in the page "GLASS" all is ok: you can see only the parent page on the top horizontal menu and the children of "GLASS" ("PROVA1" and "PROVA2")  in the vertical menu.

To have this I used showmenu2 in this way:

For the Horizontal menu

--- Code: ---<?php show_menu2(0, SM2_ROOT+0, SM2_CURR+0); ?>
--- End code ---

For the Vertical menu

--- Code: ---<?php show_menu2(0, SM2_ROOT+1, SM2_CURR+1); ?>
--- End code ---

So, now try to go in a children page "PROVA1".
The vertical menu it's ok...but the horizontal top menu NO!
It add after the parent page, the children page (you can see only "PROVA1" becouse there is not so much space, but after there is "PROVA2").
You can make another try going to "PAGINA MADRE" > "PROVA20".

Why it happens??

To have the right situation as when I'm in a parent page, as when I'm in a children page, I have necessary to create two different template?

Thank you very very much and, as usually, sorry for my english!

erpe0812:
Your sm2 calls are wrong

I have no time yet, maybe I can write it later on..........

Hope it helps for the first, read the documentation of sm2 and complete your calls.

rgds

erpe

ivanisevic82:
I read documentation but I was not able to find solutions!

I'll wait for your help later or someone else before! :)

Thanks!

ivanisevic82:
up...  :-)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version