Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-07-16 20:38:12

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

older newer - styling the default

how do i style the older and newer links? i’ve tried putting a space then a “ | “ symbol between the two to separate them a little, but then if older is on it’s own you still see the divider. “older |” does anyone have any good examples?

Last edited by mrtunes (2008-07-16 20:38:27)

Offline

#2 2008-07-16 21:44:47

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,470
Website

Re: older newer - styling the default

Is this any good? Doesn’t use a | though.
<txp:older><txp:text item="«older«" /></txp:older> <txp:newer><txp:text item="»newer»" /></txp:newer>

Last edited by zero (2008-07-16 21:45:08)


BB6 Band My band
Gud One My blog

Offline

#3 2008-07-16 22:37:22

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

Re: older newer - styling the default

You could also use showalways="1". Or style them something like this:

<txp:older><span style="float:left;">older</span></txp:older>
<txp:newer><span style="float:right;">newer</span></txp:newer>

Offline

#4 2008-07-17 00:11:32

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,306

Re: older newer - styling the default

Isn’t this the perfect candidate for if_first_article / if_last_article? Until now I only used it in list mode, but Textbook states: It will display in both single article and article list modes.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#5 2008-07-17 05:16:37

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

Re: older newer - styling the default

I link with images with mine example and use a quick plugin to apply a pages of scheme.

plugin

Offline

#6 2008-07-17 05:21:32

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

Re: older newer - styling the default

Els wrote:

You could also use showalways="1". Or style them something like this:

<txp:older><span style="float:left;">older</span></txp:older>
<txp:newer><span style="float:right;">newer</span></txp:newer>

thanks for the replies everyone. this idea looks pretty good. when i try it out, it will likely replace the one i was doing where i had a million &nbsp’s to space out the “newer” to the right side. and i can use images/arrow characters as well

Offline

Board footer

Powered by FluxBB