WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: whitsey on April 25, 2009, 01:14:22 AM

Title: Usage of show_menu()
Post by: whitsey 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
Title: Re: Usage of show_menu()
Post by: BerndJM 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