Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-01-19 22:51:39

RsQ
Member
Registered: 2006-12-13
Posts: 10

How can I add attributes to <txp:older>?

Hi all,

does anyone know how it’s possible to add attributes to the “<txp:older>” tag?

The situation is the following: I created a user sorting option via URL parameters. All works fine – until one uses the “Next entries” link.

For example: the standard URL behind “<txp:older>” was

http://www.s[…].de/verzeichnis/index.php?pg=2,

but what I needed to make it work was

http://www.s[…].de/verzeichnis/index.php?sort=PLZab&pg=2

…any idea? Would be great! It seems that doesn’t work with the standard tag – so ideas for workarounds are very welcome!

Thanks!

Best regards,

Stefan

Last edited by RsQ (2007-01-19 22:52:35)

Offline

#2 2007-01-20 02:23:00

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: How can I add attributes to <txp:older>?

<a href="<txp:older />&sort=PLZab">Older</a>

Offline

#3 2007-01-20 12:40:27

RsQ
Member
Registered: 2006-12-13
Posts: 10

Re: How can I add attributes to <txp:older>?

Thanks, this generally works.

BUT: Navigation is no problem, except coming back to the 1st page. The usual links created now look like

http://www.s[…].de/verzeichnis/index.php?pg=2&sort=PLZab

but the “newer” link on page 2 looks like this:

http://www.s[…].de/verzeichnis/&sort=PLZab

…any idea how I could force something like ?pg=1&sort=PLZab? (this works when copied to the browser’s URL line)

Best regards,

Stefan

Offline

Board footer

Powered by FluxBB