Author Topic: show + or something that have a sublink in menu2  (Read 2125 times)

Offline Cazz

  • Posts: 93
show + or something that have a sublink in menu2
« on: December 16, 2022, 05:05:33 PM »
Hmm was a long time ago I did work with menu2.
Have forgot alot but trying to come back to how it all works.
I read a little here and trying now to see if I get it to work
https://help.WebsiteBaker.org/en/designerguide/multiple-menus.php


Offline Luisehahne

  • WebsiteBaker Org e.V.
  • **
  • Posts: 4541
  • Gender: Male
Re: show + or something that have a sublink in menu2
« Reply #1 on: December 16, 2022, 06:33:41 PM »
Hmm was a long time ago I did work with menu2.
Have forgot alot but trying to come back to how it all works.
I read a little here and trying now to see if I get it to work
https://help.WebsiteBaker.org/en/designerguide/multiple-menus.php

the function menu2 is obselete, use the show_menu2. A readme with examples are inside the folder show_menu2/Docu

Dietmar
Note: Once the code has been generated, it is easy to debug. It's not a bug, it's a feature!

Offline Cazz

  • Posts: 93
Re: show + or something that have a sublink in menu2
« Reply #2 on: December 16, 2022, 07:28:14 PM »
ahh sorry I mean I have try with show_menu2 (not menu2)
Did even find
https://doc.lepton-cms.org/documentation/sm2/enterprise.html
so I going to try some more.

Offline Cazz

  • Posts: 93
Re: show + or something that have a sublink in menu2
« Reply #3 on: December 16, 2022, 10:18:40 PM »
a little update

I did find with HTML inspector that
Code: [Select]
class="menu-expand menu-sibling"> is that I need to use.

I did add this to CSS

Code: [Select]

.menu-sibling {
    content: "+";
    margin-right: 4px;
}

but nothing change in the menu.

Offline Cazz

  • Posts: 93
Re: show + or something that have a sublink in menu2
« Reply #4 on: December 16, 2022, 11:48:45 PM »
Hi again
Did find this
https://forum.WebsiteBaker.org/index.php/topic,30158.msg210354.html#msg210354

and did use this code

Code: [Select]
[a][if(class==menu-expand){ ▼ }][menu_title]</a>Now it looks better but I wish submenu move a little to the right but I maybe fix that too :)