Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2008-08-24 02:00:15
- Sono Juventino
- Member
- From: Skedsmo, Norway
- Registered: 2007-12-22
- Posts: 81
Remove indent on <txp:section_list /> (Solved, kind of)
Hello
It’s not really a big problem, but it bothers me not to have full controll over my own code. Because <txp:section_list /> won’t let me place an id with the wrap-tag, I had to put the unordened list outside the Txp generating code.
<ul id="categories"><txp:section_list break="li" default_title="Forside" include_default="1" /></ul>
The code above give me indented code like this automaticly:
<ul id="categories"><li>
<a href=“http://2dropsdesign.com/”>Forside</a></li>
<li>
<a href=“http://2dropsdesign.com/advertisment/”>Reklame</a></li>
<li>
<a href=“http://2dropsdesign.com/arkiv/”>Arkiv</a></li>
<li>
<a href=“http://2dropsdesign.com/forside/”>Forside</a></li>
<li>
<a href=“http://2dropsdesign.com/info/”>Info</a></li>
<li>
<a href=“http://2dropsdesign.com/kontakt/”>Kontakt</a></li>
<li>
<a href=“http://2dropsdesign.com/tabellen/”>Tabellen</a>
</li></ul>
Any way to sort it out? Thanks for all help. Thomas
Last edited by Sono Juventino (2008-08-24 17:27:45)
Offline
Re: Remove indent on <txp:section_list /> (Solved, kind of)
Don’t think there is any way around having the ul outside the section_list tag. As you correctly say, there is no wraptag id attribute for this tag.
Offline
#3 2008-08-24 08:23:59
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: Remove indent on <txp:section_list /> (Solved, kind of)
Thomas
Hello. Couldn’t you just put it all inside a div and give that div the id
? You can still style the CSS using #id ul
etc.
— Steve
Offline
#4 2008-08-24 15:57:24
- Sono Juventino
- Member
- From: Skedsmo, Norway
- Registered: 2007-12-22
- Posts: 81
Re: Remove indent on <txp:section_list /> (Solved, kind of)
That’s a possibility of course. Thanks for workarounds folks.
Edit: I could of course just style “section_lists”, but that class gives just as little info as “div-34” or other pointless names.
Last edited by Sono Juventino (2008-08-24 17:28:17)
Offline