Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Stray li tag is driving me nuts
Hi guys. Okay, I have the following in my form:
<code>
<li><txp:link_to_home>home</txp:link_to_home></li>
<txp:section wraptag=“li” link=1 title=1 name=“about” />
<txp:section wraptag=“li” link=1 title=2 name=“portfolio” />
<txp:section wraptag=“li” link=1 title=3 name=“new-york-city-guide” />
<div class=“display”>
<li>travel</li>
</div>
<div class=“stretcher”>
<li><txp:cbs_category_list section=“travel” /></li>
</div>
<txp:section wraptag=“li” link=1 title=5 name=“technology” />
<txp:section wraptag=“li” link=1 title=6 name=“contact” />
</code>
But when I view the site my menu looks messed up because of the stray <li /> tag.
I just don’t get it. I looked everywhere but can’t find where this stray <li /> tag is coming from???
See browser source below:
<code>
<div class=“section”>
<li><a rel=“home” href=”#”>home</a></li>
<li><a href=”#”>about</a></li>
<li><a href=”#”>portfolio</a></li>
<li />
<div class=“display”>
<li>travel</li>
</div>
<div class=“stretcher”>
<li><a href=”#”>Mexico</a></li>
</div>
<li><a href=”#”>technology</a></li>
<li><a href=”#”>contact</a></li>
</code>
Any help very much appreciated!
Thanks,
Dada
Offline
Re: Stray li tag is driving me nuts
yeah….. something is broken in this one: <txp:section wraptag=“li” link=1 title=3 name=“new-york-city-guide” />
….. you’ll notice it’s missing from the output code. Maybe that section doesn’t exist?
Also, you should put all of your attribute-value pairs’ values in quotes.
If you want to show code blocks in the forum, we’re using the new Textile now. You use the “at” symbol to wrap code.
Offline
#3 2007-01-18 22:05:47
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Stray li tag is driving me nuts
This has nothing to do with your problem, but (from Textbook):
title="integer"
Display section name or title. Available values: 0 (section name) and 1 (section title). Default is 0.
Like Walker said, your section new-york-city-guide does not exist. Better check the spelling.
Last edited by els (2007-01-18 22:13:45)
Offline
Re: Stray li tag is driving me nuts
Thanks guys! Again I couldn’t see the forest for the trees. Never occurred to me to look if all my section naming was correct!
I am *haaaappY
Offline
Pages: 1