Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-01-18 21:10:49

dada78
Member
From: New York
Registered: 2005-10-27
Posts: 138
Website

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

#2 2007-01-18 21:19:22

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

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

#4 2007-01-18 22:19:06

dada78
Member
From: New York
Registered: 2005-10-27
Posts: 138
Website

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

Board footer

Powered by FluxBB