Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-02-11 19:39:07

johan_vm
Member
From: Antwerp, Belgium
Registered: 2005-04-24
Posts: 30
Website

... use multiple break attributes?

I’m trying to use the “Txp:section list /” tag for my site’s navigation.

—> http://textpattern.net/wiki/index.php?title=Txp:section_list_/

The problem is that I need a structure like:
<code>
<ul>
<li><a href=”“><span></span></a></li>
</ul>
</code>

In order to style the links (with rounded corners,…).

I tried to use

<code><txp:section_list wraptag=“ul” break=“span li” /></code>
<code><txp:section_list wraptag=“ul” break=“span” break=“li” /></code>

<br />But that doesn’t work…
How can I solve this?

Johan.

Last edited by johan_vm (2006-02-11 19:41:28)


Dutch Ruby on Rails news and articles: OnRails

Offline

#2 2006-02-12 13:21:28

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

Re: ... use multiple break attributes?

Use the class attribute, <txp:section_list class="whatever" />, and style the .whatever li a in your CSS.

Offline

#3 2006-02-12 19:43:54

johan_vm
Member
From: Antwerp, Belgium
Registered: 2005-04-24
Posts: 30
Website

Re: ... use multiple break attributes?

Thank you for your reply, but I don’t think adding a class attribute would solve my problem…
That’s because I use rounded navigation tabs that require a background image (two actually, one for the left and one for the right corner).

At the moment (with the links hardcoded in my XHTML; without using the section list tag) I can apply:

-one background image to the <code>li</code> tag
-one to the <code>span</code> tag

Using <code>li</code> and <code>.whatever li</code>, would mean setting two different background images to one element. I don’t think that’s possible; even when you use two different CSS selectors.

I guess I will keep using the hardcoded links… I only need four of them after all :-)

Last edited by johan_vm (2006-02-12 19:44:29)


Dutch Ruby on Rails news and articles: OnRails

Offline

#4 2006-02-12 20:15:57

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

Re: ... use multiple break attributes?

I agree handcoding seems to be the only solution, and not much of a problem if there are only four sections. There may be a plugin that can do what you want.

Offline

#5 2006-02-12 23:11:03

johan_vm
Member
From: Antwerp, Belgium
Registered: 2005-04-24
Posts: 30
Website

Re: ... use multiple break attributes?

I will stick to handcoding. I only need three links actually. The fourth will be for a punbb forum.
I already knew the TXP plugin site. I have browsed it before, and found a few interestin plugins:
one to show an “edit” link on your frontend, one to show punbb info, one for alternating comments,…

Johan.


Dutch Ruby on Rails news and articles: OnRails

Offline

Board footer

Powered by FluxBB