Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-03-07 02:21:55

pwdesigners
New Member
Registered: 2007-12-11
Posts: 9

Changing order of postings

Hi, I am using textpattern as a way to upload a list of current events and currently the newest posting goes on top of the older ones how can I reverse this order?

Offline

#2 2008-03-07 03:48:22

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Changing order of postings

Documentation – you want <txp:article sort="Posted asc"/>.

Offline

#3 2008-03-07 07:33:04

pwdesigners
New Member
Registered: 2007-12-11
Posts: 9

Re: Changing order of postings

Thanks but where would I put that code in?

Offline

#4 2008-03-07 09:03:53

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Changing order of postings

Substitute it with the existing <txp:article/> in your page template.

Offline

#5 2008-03-08 20:01:12

pwdesigners
New Member
Registered: 2007-12-11
Posts: 9

Re: Changing order of postings

I dont have that in my code:

Here it is:

<table width=“500” border=“0” cellspacing=“5” cellpadding=“5”> <tr> <td class=“textaboutus”><div align=“center” class=“style2”><span class=“style1”>Coming Events </span></div></td> </tr> <tr> <td class=“textaboutus”><div align=“center” id=“container”> <!— center —> <div align=“center” id=“content”> <txp:article limit=“5” /> <txp:if_individual_article> <p align=“center”>.<txp:link_to_prev><txp:prev_title /></txp:link_to_prev> <txp:link_to_next><txp:next_title /></txp:link_to_next></p> <txp:else /> <p align=“center”><txp:older><txp:text item=“older” /></txp:older> <txp:newer><txp:text item=“newer” /></txp:newer></p> </txp:if_individual_article> </div> <div align=“center” id=“foot”>&nbsp;</div> </div></td> </tr> </table>

Offline

#6 2008-03-08 20:04:46

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: Changing order of postings

pwdesigners wrote:

I dont have that in my code:

Here it is:

<table width=“500” border=“0” cellspacing=“5” cellpadding=“5”> <tr> <td class=“textaboutus”><div align=“center” class=“style2”><span class=“style1”>Coming Events </span></div></td> </tr> <tr> <td class=“textaboutus”><div align=“center” id=“container”>

<!— center —> <div align=“center” id=“content”> <txp:article limit="5" /> <txp:if_individual_article> <p align=“center”>.<txp:link_to_prev><txp:prev_title /></txp:link_to_prev> <txp:link_to_next><txp:next_title /></txp:link_to_next></p> <txp:else /> <p align=“center”><txp:older><txp:text item=“older” /></txp:older> <txp:newer><txp:text item=“newer” /></txp:newer></p> </txp:if_individual_article> </div> <div align=“center” id=“foot”>&nbsp;</div> </div></td> </tr> </table>

Offline

Board footer

Powered by FluxBB