Page 1 of 1

menu problem

Posted: Sun Sep 09, 2007 6:09 pm
by rogus
Hello,
Sorry I know this is my second post today... but I am kind of trying to switch to cms I hope you all understand.
I need a custumized menu, and since i am not much of php programmer i would beg for help ;]
What I am looking for is a menu templete that would assign a constant id to every page -
meaning: let's say I have three pages: news, gallery, contact...
what would fit me if we could assign an id to () news as for instance x1, gallery -> x2, contact ->x3
They must have the same id no matter what page is open currently.
Plus they should be inside ordered list(but this is standard right)

I really really need your help.
I do not care about anything else cause they will be graphic anyway and will be positioned absolutely

The code should look like:

whatever
....

and should be constant for each site

Re: menu problem

Posted: Sun Sep 09, 2007 6:40 pm
by calguy1000
id's can only be used once on a page, classes can be used numerous times..... id's have to be unique, but classes can be re-used.....

So, do you want every menu item to use the same class?  and have different id's?

Re: menu problem

Posted: Sun Sep 09, 2007 6:53 pm
by rogus
basically i want something that will assign a seperete value(id or class whatever) for each page.. and later on i can assign style for each li...





...


kind regards,
thank you all

Re: menu problem

Posted: Sun Sep 09, 2007 8:01 pm
by alby
If you call your alias pages (see in option of pages): contacts, gallery and news
you have a unique value for this menu tag

..MenuTextOfContacts..
..MenuTextOfGallery..
..MenuTextOfNews..
Alby

Re: menu problem

Posted: Sun Sep 09, 2007 8:18 pm
by rogus
still with my programming skills i am not able to create a menu template that would generate such menu...if anyone could drop a few lines of code;] it would be more than great ;]

Re: menu problem

Posted: Sun Sep 09, 2007 9:08 pm
by Dr.CSS
alias}"[/color]  after every <li should give you the page alias for every page so you can style each li item diff. used in menus like this...

http://multiintech.com/cmsms1.1/chesshome.html

Re: menu problem

Posted: Sun Sep 09, 2007 10:03 pm
by rogus
sorry for lame question... should i create a menu template for it... or should i paste it into template... cause if to the tenplate then i need a code for url for a hrefs
ś

Re: menu problem

Posted: Sun Sep 09, 2007 10:20 pm
by calguy1000
Create a new menu manager template (done by clicking on one of the file templates, and providing a new name: mytemplatename
Then make your changes as mark described above,
and call it with {menu template='mytemplatename' ...}