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?
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?
in the next version of c5 each <a> has its own class.
We did something of sorts feel free to PM me and I'll see if I can dig it up for you :-)
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)
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)
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.
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.
Hey, I'm on the new side to Concrete, anyone else out there who knows better?