Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#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
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
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
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
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