Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2007-12-10 03:08:21
- xixel
- New Member
- Registered: 2007-12-10
- Posts: 2
Displaying Sections
Very new to CMS let alone textpattern, but an experienced coder\designer
I’ve designed a top navigation for my site, using CSS, and lists, but they’re a bit advanced and I want to “wrap” the actual section title aswell, for example I NEED
<li><a href=”#”><span>section</span></a></li>
I’ve gone up and down taghandlers.php, its a little bit over my head but I can sort of make my way around, anything I’ve seen and edited hasn’t made a single change in the output it renders – the code I’m using to get where I am now:
<ul>
<txp:section wraptag=“li” link=1 title=1 name=“home” />
<txp:section wraptag=“li” link=1 title=1 name=“design” />
<txp:section wraptag=“li” link=1 title=1 name=“photography” />
<txp:section wraptag=“li” link=1 title=1 name=“resources” />
<txp:section wraptag=“li” link=1 title=1 name=“contact” />
</ul>
I thought for a second and said, hey! how about I use span as my wraptag, and I’ll put in the li tags myself… but no, the spans are outside of the anchor so it was a no go
Anyway I need someone to show me the light, where to edit or what to do here
Thanks in advance for your time
Last edited by xixel (2007-12-10 03:09:07)
Offline
Re: Displaying Sections
if the built-in textpattern tags don’t do what you want and you’ve exhausted your options theres no reason why you can’t use regular xhtml.
instead of txp:section you can just use <li><a href="/home"><span>home</span></a></li>
(assuming you’re using clean urls)
Offline
#3 2007-12-10 03:44:11
- xixel
- New Member
- Registered: 2007-12-10
- Posts: 2
Re: Displaying Sections
ya I guess you’re right, I’ve got that far out of the section_list may aswell go all static, thanks! lol…
Offline
Re: Displaying Sections
Or, you could use txp-tags also, so it doesn’t need to be static. Therefor, you can change the link, name and title throught the backend.
<li><txp:section name="design"><span><txp:section name="design" title="1" /></span></txp:section></li>
PS. txp:section
is also container tag, as where almost every tag is. As used container txp:category
, txp:section
and so-on, will create links.
Cheers!
Last edited by Gocom (2007-12-10 11:01:54)
Offline
Pages: 1