Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-02-15 16:54:31

John Wozniak
Member
Registered: 2006-10-20
Posts: 37

How can I place a class on "older", "newer" (etc.) links?

I would like to remove and/or be able to change the p tags that wrap these types of links and place a class on the anchor as I want to use CSS backgrounds instead of inline images.

I checked out Textbook on this tag, but don’t yet see a way.

Anyone have any suggestions?

Offline

#2 2007-02-15 20:41:45

rsilletti
Moderator
From: Spokane WA
Registered: 2004-04-28
Posts: 707

Re: How can I place a class on "older", "newer" (etc.) links?

<a href="<txp:older />"><txp:image name"left-arrow.gif" /></a>

Modifing the Textbook example as follows should work:

<a class="yourclass" href="<txp:older />"></a>

Last edited by rsilletti (2007-02-15 20:43:07)

Offline

#3 2007-02-15 21:57:41

John Wozniak
Member
Registered: 2006-10-20
Posts: 37

Re: How can I place a class on "older", "newer" (etc.) links?

Thanks Rick.

I am not used to nesting the TXP tags in xHTML (r.e. your example) yet. I will post back shortly when I have a chance to implement it.

Last edited by John Wozniak (2007-02-16 00:22:31)

Offline

#4 2007-02-15 22:55:33

rsilletti
Moderator
From: Spokane WA
Registered: 2004-04-28
Posts: 707

Re: How can I place a class on "older", "newer" (etc.) links?

The Textbook tag example wasn’t correct, by the way. It should have read as follows:
<a href="<txp:older />"><txp:image name="left-arrow.gif" /></a>

Offline

Board footer

Powered by FluxBB