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 »
  • use show_menu2 in a page
  • Print
Pages: [1]   Go Down

Author Topic: use show_menu2 in a page  (Read 10904 times)

Offline Cazz

  • Posts: 93
use show_menu2 in a page
« on: February 14, 2008, 08:14:26 PM »
Hi
I use show_menu2 in a horizontal menu on my site

But I like to have submenu in a page when I click on a menu that have a submenu

I like to have a list of the submenu.

Is not so easy for me to tell what I like to have but I have you understand :)
Logged

Offline DGEC

  • Posts: 388
  • Gender: Male
    • EbelTech homepage
Re: use show_menu2 in a page
« Reply #1 on: February 14, 2008, 09:52:51 PM »
If you want a DIFFERENT menu, search on "multiple menus".

If you want a drop-down menu, look in the addon/templates section: there are several "drop-down menu" templates there.  The "generic" template works fairly well.
Logged

Offline Cazz

  • Posts: 93
Re: use show_menu2 in a page
« Reply #2 on: February 14, 2008, 10:20:47 PM »
Thanks for you fast replay.

I have read about "multiple menus" and maybe is that I looking for.
I know that I dont looking for any "drop-down menu"

I have on my page four links in my menu.
In one of them I have subpages

Page 1
Page 2 > Subpage 1, Subpage 2, Subpage 3......
Page 3
Page 4

The subpage dont show in the menu but when I click on the menu for Page 2 I want to show a list of my subpages

* Subpage 1
* Subpage 2
* Subpage 3
.....


I have this code in my index.php

Code: [Select]
<?php show_menu2(0, SM2_ROOT, SM2_START, SM2_ALL, &#39;[a][menu_title]</a>&#39;, &#39;&#39;, &#39;&#39;, &#39;&#39;, &#39;[a][menu_title]</a>&#39;); ?>
And what I have find out I use this code to list my subpage

Code: [Select]
<?php show_menu2(0, SM2_CURR+1, SM2_START, false, false, &#39;<li>&#39;); ?>
but I have no idea how to put that inside "Page 2"
I have try when I create Page 2 that I choose "Code" and past the PHP code inside but nothing happend.
the "Code" maybe can't use PHP code or I have done something wrong :)

Logged

Offline ruebenwurzel

  • Betatester
  • **
  • Posts: 8544
  • Gender: Male
  • Keep on Rockin
    • Familie Gallas Online
Re: use show_menu2 in a page
« Reply #3 on: February 15, 2008, 07:25:20 AM »
Hello,

best is to place the menu call in the index.php of your template at the place where it should appear.

Matthias
Logged

Offline Cazz

  • Posts: 93
Re: use show_menu2 in a page
« Reply #4 on: February 16, 2008, 01:36:47 PM »
Hi Matthias
Yes that work very nice :)

I only have one little question.

Can I get so I can have like "order by title" so the menu go after alphabetical order?

or do I have to change the place after I have create a page from my administration area
Logged

Offline ruebenwurzel

  • Betatester
  • **
  • Posts: 8544
  • Gender: Male
  • Keep on Rockin
    • Familie Gallas Online
Re: use show_menu2 in a page
« Reply #5 on: February 16, 2008, 02:13:09 PM »
Hello,

the order in the frontend is the same as in backend. So if you wanna have it ordered alphabetical you have to do this manual by moving up and down the pages in the backend.

Matthias
Logged

Offline Cazz

  • Posts: 93
Re: use show_menu2 in a page
« Reply #6 on: February 16, 2008, 02:28:04 PM »
ok thanks for the fast replay
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • use show_menu2 in a page
 

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