menu problem

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
rogus
New Member
New Member
Posts: 5
Joined: Sun Sep 09, 2007 10:49 am

menu problem

Post 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
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: menu problem

Post 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?
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
rogus
New Member
New Member
Posts: 5
Joined: Sun Sep 09, 2007 10:49 am

Re: menu problem

Post 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
alby

Re: menu problem

Post 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
rogus
New Member
New Member
Posts: 5
Joined: Sun Sep 09, 2007 10:49 am

Re: menu problem

Post 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 ;]
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: menu problem

Post 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
rogus
New Member
New Member
Posts: 5
Joined: Sun Sep 09, 2007 10:49 am

Re: menu problem

Post 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
ś
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: menu problem

Post 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' ...}
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Post Reply

Return to “Layout and Design (CSS & HTML)”