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 »
  • Usage of show_menu()
  • Print
Pages: [1]   Go Down

Author Topic: Usage of show_menu()  (Read 4114 times)

Offline whitsey

  • Posts: 22
Usage of show_menu()
« on: April 25, 2009, 01:14:22 AM »
Hi All,

I have created a template and have used show_menu() to display a very simple menu.  My problem is that I have used a border-right method in my menu class which displays a separator between each menu item like this:

Home | New | Used | About |

The problem is, when using the show_menu() I have no control over when to stop displaying the '|'
Obviously, when I get to the last item, I no longer want to display the menu separator as seen above...

I guess my question is:

1. Can I use a different class for the first or last item?
2. Is there a better way for me to achieve this?

Thanks for your help
Logged

Offline BerndJM

  • Posts: 1764
  • Gender: Male
Re: Usage of show_menu()
« Reply #1 on: April 25, 2009, 02:10:40 AM »
Hi,

if you use show_menu2() you'll get automaticly a class menu-last for the last menuitem.
For details of the usage see the readme on the developer page:
http://code.jellycan.com/files/show_menu2-README.txt

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

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

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