Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-10-10 04:20:31

RAW
New Member
Registered: 2006-07-17
Posts: 8

How to re-order articles (maybe archiving)?

I’m code-stoopid.
Just thought I’d start with that.

I’ve got a category on my blog that chronicles my house-building adventure.
For the most part, it’s usually perfect to have the newest post at the top of the page.

But for someone who wants to read from the beginning, it’d be best if the oldest post was at the top of the page. And then you could move through the pages chronologically.

What’s the best way to do this?

I tried setting up the archive thing, but . . . I can’t seem to create a copy of my “default” template. I keep getting an error.

Thanks in advance!!

Offline

#2 2009-10-10 05:47:37

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: How to re-order articles (maybe archiving)?

Hi RAW
bq. I’ve got a category on my blog that chronicles my house-building adventure…

i’d like to follow that in you site:)

Create a section and call it ‘house_history’ – or whatever else you prefer.
In your default template add:

<txp:if_section name="house_history">
<txp:article sort="posted asc" />
</txp:if_section>

Check out the article and article_custom”:http://textbook.textpattern.net/wiki/index.php?title=article_custom. The attribute you are looking for is sort.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2009-10-10 14:11:38

RAW
New Member
Registered: 2006-07-17
Posts: 8

Re: How to re-order articles (maybe archiving)?

Thanks for the reply! If I can get this figured out, I’ll definitely post the new link!

Well, Hmm. That brings me to the problem I was getting trying to follow another tutorial.

When I try to edit the Default Page Template in Presentation—>Pages . . . .

I make changes, then put a new name in the “or copy page as” box. Then I hit copy.

And I get

“Bad Request

Your browser sent a request that this server could not understand.”

Any idea what’s happening there?

Offline

#4 2009-10-10 16:41:34

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: How to re-order articles (maybe archiving)?

You have to give a name to the ‘new’ template. On the right of “…or, copy page as” there is a box. Write the new name and then hit the “copy” button.

scrub that. you are doing it already:) It might be a server issue. Try adding SecFilterEngine Off in your htaccess file.

Alternatively check your database using phpMyAdmin. It might need repairing.

Last edited by colak (2009-10-10 16:45:16)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#5 2009-10-11 21:04:09

whaleen
Member
From: Portland
Registered: 2006-05-11
Posts: 373
Website

Re: How to re-order articles (maybe archiving)?

colak wrote:

Alternatively check your database using phpMyAdmin. It might need repairing.

rss_admin_db_manager can be helpful if you don’t know where phpMyAmdin is or how to use it.


txtstrap (Textpattern + Twitter Bootstrap + etc…)

Offline

#6 2009-10-11 21:08:47

RAW
New Member
Registered: 2006-07-17
Posts: 8

Re: How to re-order articles (maybe archiving)?

Thanks for the suggestions, y’all.
But after fooling with it for hours, trying backup copies of my SQL database, deleting and reinstalling the newest Textpattern build, etc.

I gave up.
And moved to Wordpress.
And now I’ve got it working like I wanted.

Offline

#7 2009-10-11 21:20:17

whaleen
Member
From: Portland
Registered: 2006-05-11
Posts: 373
Website

Re: How to re-order articles (maybe archiving)?

stricken

Last edited by whaleen (2009-10-12 07:43:32)


txtstrap (Textpattern + Twitter Bootstrap + etc…)

Offline

Board footer

Powered by FluxBB