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.9 R24 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 »
  • show_menu2 Question...
  • Print
Pages: [1]   Go Down

Author Topic: show_menu2 Question...  (Read 4384 times)

Offline gillweb

  • Posts: 83
show_menu2 Question...
« on: February 05, 2009, 08:20:38 PM »
I am using this code in the footer of my template to show links to pages. 

Code: [Select]
<?php show_menu2(1,0,1,SM2_PRETTY,&#39;[ac][menu_title][/a]&#39;,&#39;&#39;,&#39;&#39;,&#39;&#39;,&#39;&#39;,&#39;&#39;); ?>
What do I have to add or subtract to this code to just show the 'top level' pages and not subpages?
Logged

Offline BerndJM

  • Posts: 1764
  • Gender: Male
Re: show_menu2 Question...
« Reply #1 on: February 06, 2009, 12:54:11 AM »
Hi,

please have a look at the show_menu2 ReadMe which Parameters are available and allowed! for $aStart and $aMaxLevel ...

Regards Bernd
Logged
In theory, there is no difference between theory and practice. But, in practice, there is.

Offline gillweb

  • Posts: 83
Re: show_menu2 Question...
« Reply #2 on: February 06, 2009, 03:33:35 AM »
Quote from: gillweb on February 05, 2009, 08:20:38 PM
Code: [Select]
<?php show_menu2(1,SM2_ROOT,SM2_START,SM2_PRETTY,&#39;[ac][menu_title][/a]&#39;,&#39;&#39;,&#39;&#39;,&#39;&#39;,&#39;&#39;,&#39;&#39;); ?>
Thanks, I knew there was something in writing somewhere.  Thanks. :-D
Logged

mickpage

  • Guest
Re: show_menu2 Question...
« Reply #3 on: February 06, 2009, 03:21:25 PM »
or look at the many examples here ... http://code.jellycan.com/sm2test/
Logged

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

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