Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-04-29 18:43:12

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

<txp:section_list> combined with your own entries.

this is a little frustrating. i can’t figure out how to get a consistent look on this navbar:

<ul id="navbar">
<li class='section_list'><li>##register##</li>
<txp:section_list sections="about, kids, resources, support" wraptag="li" break="li"  />
<li class='section_list'><li>##24hour##</li>
<li><span><txp:l10n_lang_list surpress_current="1" /></span></li>
</ul>
#navigation li, .section_list a {
font-family:verdana,helvetica,arial;
color:#495369;
display:inline;
list-style-type:none;
font-size:14px;
padding:5px;
margin-left:5px;
}

there are bigger gaps between register and the About. as well as support and 24 Hour. thanks!

Offline

#2 2009-04-29 18:55:38

variaas
Plugin Author
From: Chicago
Registered: 2005-01-16
Posts: 402
Website

Re: <txp:section_list> combined with your own entries.

I’m pretty sure by setting wraptag to li you’re wrapping those items in an unnecessary li. Try setting wraptag to “”.

Offline

#3 2009-04-29 19:38:13

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: <txp:section_list> combined with your own entries.

mrtunes wrote:

try

<ul id="navbar">
<li class='section_list'><li>##register##</li>
<txp:section_list sections="about, kids, resources, support"  break="li"  />
<li class='section_list'><li>##24hour##</li>
<li><span><txp:l10n_lang_list surpress_current="1" /></span></li>
</ul>

Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#4 2009-04-29 21:07:21

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: <txp:section_list> combined with your own entries.

Double <li>s:

<li class='section_list'><li>

Offline

#5 2009-04-30 04:14:49

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: <txp:section_list> combined with your own entries.

thank you for the replies guys.

what i have now is:

<ul id="navbar">
<li>##register##</li>
<txp:section_list sections="about, kids, resources" wraptag="" break="li"  />
<li>##support##</li>
<li>##24hour##</li>
</ul>
<txp:l10n_lang_list surpress_current="1" />

and this seems to work properly! i guess it was a combination of things that made awkward gaps.

for anyone reading this and curious about what the 10n_lang is – it’s from the MLP plugin which toggles french and english. i moved it outside of the unordered list and gave it an absolute positioning so that when the language flips over to french, this button doesnt move around the bar.

Offline

Board footer

Powered by FluxBB