Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2009-02-02 14:19:24
- fonografist
- New Member
- Registered: 2009-02-02
- Posts: 9
make a separate ID for each list item in a section list
Hello, I am kinda new to textpattern specifically and creating a style with CSS in general. I’m not a total beginner although, but please excuse me if my questions sound a bit dull.
Well, as the subject says, I would like to be able to have a separate ID for each <li> item in a section list. The reason for this is that i want to exchange the text in each list item to images, one image for each menu button so to speak.
I have done this before, but then i just did it with regular HTML and CSS, and without Textpattern or any other CMS. (the page I’m speaking of is here – www.spakur.se – its in swedish).
So, now I’m basically trying to convert that page into textpattern, so it will be easier to update and everything, so that why I’m asking.
Offline
#2 2009-02-02 15:47:42
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: make a separate ID for each list item in a section list
Something like this?
<txp:section_list wraptag="ul" break="">
<li id="<txp:section />"><txp:section title="1" link="1" /></li>
</txp:section_list>
Offline
#3 2009-02-02 15:55:49
- fonografist
- New Member
- Registered: 2009-02-02
- Posts: 9
Re: make a separate ID for each list item in a section list
perfect! seems to do the trick just like i wanted to!
thank you very much
Offline