Autonav CSS ID

Permalink
I am new to Concrete5 and trying to get my head around how to use it by building a site.

I am trying to automatically give each page in the nav a css id/class so I can style the page and the navigation, looking through the forum I have seen some reference to doing this by editing the code in blocks>autonav>view and tried this but no luck.

So how do I add a page id to each individual li in the autonav?

 
Stiny replied on at Permalink Reply
Stiny
So tell me if I'm understanding this correctly... Are you wanting to make every <li> item in the navigation have their own separate style defined in the CSS? If this is what you are trying to do, Concrete doesn't support this (I don't think...). What I would suggest in that case is to make a content block and manually write the links there. However, this will not dynamically update with the server whenever you make a new page.

Hey, I'm on the new side to Concrete, anyone else out there who knows better?
12345j replied on at Permalink Reply
12345j
in the next version of c5 each <a> has its own class.
ThemeGuru replied on at Permalink Reply
ThemeGuru
We did something of sorts feel free to PM me and I'll see if I can dig it up for you :-)
jordanlev replied on at Permalink Best Answer Reply
jordanlev
See:
http://www.concrete5.org/community/forums/themes/custom-class-for-e...
(scroll down to the bottom for a custom template you can download -- it's an attachment to one of the last posts in the thread)

Also see:
http://www.concrete5.org/community/forums/customizing_c5/auto-nav-t...
(if you just want to read more esoteric details about this)
matthull replied on at Permalink Reply
Thank you all for your comments, and help. Jordanlev linked documents allowed me to ad a unique class to each li in the nav based upon the page number. I was hoping to do this based upon the page name - however I can't seem to find this answer so this seems to be the next best answer.
jordanlev replied on at Permalink Reply
jordanlev
The problem with using a page name is that more than one page in your site might have the same page, and also page names might have spaces or other illegal characters for CSS.