WebsiteBaker Support (2.8.x) > Templates, Menus & Design
Menu with one step without links
viiksi:
--- Quote from: Stefek on October 19, 2010, 02:43:56 PM ---it was just a "pseudo code".
--- End quote ---
I really have to confess that i had to use wikipedia even to check what "pseudo code" means ;)
As you might notice now im not good at coding.
But yes now we are on right track.
I will bang my head to wall tonight to get this work.
ps. For this solution hardcoded works very well since its never going to be changed afterwards.
- viiksi
Stefek:
--- Quote from: DarkViper on October 19, 2010, 03:03:03 PM ---it's a bit tricky use of Target. For 'normal' pages you can use the target '_top' for 'break frameset' and '_blank' for an external link. If you choose '_self' so the menu_title is displayed without a link.
--- End quote ---
Too confusing..
It's the same as using Keywords for unique titles in the menu ;-)
--- Quote from: DarkViper on October 19, 2010, 03:03:03 PM ---ps @stefek:: compare by == instead of = then it works.. :wink:
--- End quote ---
Of course, just on the fly, no testing..
Regards,
Stefek
viiksi:
Well thanks for you both.
I know finally understand what those false words even means on that code ;)
It was good that you didnt tell me right solution straightaway so i had to think.
I had to do some modification to the code so it started to work.
--- Quote from: Stefek on October 19, 2010, 02:43:56 PM ---...
$aItemOpen = '[if level=2 {<li>[menu_title]} else {<li>[a][menu_title]</a>}]',
...
--- End quote ---
to '[if(level=2) {<...
Stefek:
--- Quote from: viiksi on October 19, 2010, 11:24:29 PM ---It was good that you didnt tell me right solution straightaway so i had to think.
--- End quote ---
Yes great,
mostly like people using their own brains :wink:
Glad you got it working.
Regards,
Stefek
davidwaterman:
Hi Guy's I'm trying to do the same. But get code printing to the screen. Would you tell me what i'm doing wrong please?
<?php show_menu2(1, SM2_ROOT, SM2_ALL, SM2_ALL, '[iflevel=1{<li>[menu_title]}else{<li>[a][menu_title]</a>}]', "\n</li>", false, false, false, '<ul id="header_menu" class="menu">'); ?>
Thanks in advance.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version