Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-07-17 15:33:26
- davidarthurs
- Member
- Registered: 2006-06-06
- Posts: 30
generate a single archive page
Hi there. New to TXP. Former MT user.
I’m having trouble figuring out how to generate a basic archive page with a list of all articles or static pages.
I’ve created a template as per instructions – http://textpattern.com/faq/134/how-do-i-make-an-archive-page
but I still only seem to be generating my index.php page and nothing else.
How do you actually generate a page based on your created template? and how do you specify its name i.e. I was just looking for something like archives.php in my root folder.
any help greatly appreciated.
Offline
#2 2006-07-17 18:01:58
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: generate a single archive page
Pages are not generated, they’re stored in the database.
Create a section named “archive” and page for it to use.
Offline
#3 2006-07-17 18:02:27
- NyteOwl
- Member

- From: Nova Scotia, Canada
- Registered: 2005-09-24
- Posts: 539
Re: generate a single archive page
You would need to design a page template that would display all articles on a section basis, since articles are tied to the section they are filed in.
TXP, unlike MT, does not create individual static site pages (other than index.php) that you can find in your directory. It stores all page templates and forms in the database and builds each page dynamically when it is called (MT’s optional mode). If you need a static copy you can save the page while viewing or run one of the many spider type programs that copy a site to files.
Static page generation is one of the biggest things I like about MT and wish TXP had the ability to do so.
Obsolescence is just a lack of imagination. / 36-bits Forever! / #include <disclaimer.h>;
Offline
#4 2006-07-17 18:23:56
- davidarthurs
- Member
- Registered: 2006-06-06
- Posts: 30
Re: generate a single archive page
I see, so you can’t actually create pages outside of sections.
Like www.website.com/about.php or whatever
to create an archive page that lists all entries I presumable create a new tempplate – but if there is not ‘entry’ as such – as it is just making a list of all articles does this mean it can’t be created?
or is it sections that really generate static pages? i.e. put static content in a new template, then create a new section linked to that template ?
anything listed in section is a generated page – is that right ?
but they all have to be directories /sectionname ?
Offline
#5 2006-07-17 18:51:30
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: generate a single archive page
Offline
Re: generate a single archive page
I see, so you can’t actually create pages outside of sections.
Like www.website.com/about.php or whatever
It depends on your URL structure, so if you login, go to Admin, you can edit your Permanent Link mode (/year/date, /section/title, /title, or messy).
You can make a sitewide archive by date or category. Just follow Stuart’s tutorial. Also, check out TXP building blocks and Nathan Smith’s articles.
I’ve never used Movable Type, but my suggestion is to forget everything you know…about blog templates :).
Offline
#7 2006-07-17 19:10:24
- davidarthurs
- Member
- Registered: 2006-06-06
- Posts: 30
Re: generate a single archive page
hmmm. i getcha. its either/or – although you see you might want both – sections that are generated content: /section/
and then static – say for a contact form: /contact.php
Pity you can’t use both. That kinda rules out TXP as a flexible CMS in many respects.
although I suppose going the section directory route is the best option, with every static page linked off a directory. / / which isn’t too bad.
Last edited by davidarthurs (2006-07-17 19:21:44)
Offline
#8 2006-07-17 20:26:27
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: generate a single archive page
davidarthurs wrote:
That kinda rules out TXP as a flexible CMS in many respects.
Why? What’s wrong with site.com/contact/ ?
Offline
#9 2006-07-17 21:24:40
- NyteOwl
- Member

- From: Nova Scotia, Canada
- Registered: 2005-09-24
- Posts: 539
Re: generate a single archive page
I think a distinction needs to be made between static content and static website page files. Static content is not a problem for TXP at all (my about page, contact page, policy page) are all static content but the page displayed to the user is generated on the fly.
It would be possibly to mix true static html/php files with TXP to a certain extent (f you use absolute path names for internal links on the static pages; eg <code><!—#include virtual=”/index.php?s=article&id=666” —></code> ), but it could become a bear to maintain for even a medium sized site.
Last edited by NyteOwl (2006-07-17 21:26:08)
Obsolescence is just a lack of imagination. / 36-bits Forever! / #include <disclaimer.h>;
Offline
Pages: 1