Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-04-11 05:38:49
- shorty114
- New Member
- Registered: 2006-04-11
- Posts: 3
Making a static home page
Hi, I’m a total newbie to TXP, and for the last 45 minutes or so I’ve been trying to find out how to have a static home page (e.g. like hicksdesign.co.uk). I’ve searched through the wiki, the FAQ, textpattern.org, but to no avail.
Can anyone provide some instructions or a link to some documentation on how to do this?
Offline
#2 2006-04-11 05:53:19
- whatbrick
- Member
- From: Texas
- Registered: 2006-03-13
- Posts: 100
Re: Making a static home page
Ta-dah! <a href=“http://textpattern.com/faq/31/how-do-i-manage-static-pages”>click me</a>
Do not taunt the Markup Monkey!
Offline
Re: Making a static home page
Or this one
Offline
#4 2006-04-11 15:11:33
- shorty114
- New Member
- Registered: 2006-04-11
- Posts: 3
Re: Making a static home page
Thanks for your help guys, but I couldn’t find instructions on changing the root page. I’m not running a blog — it’s a business site, and the front page is like textpattern.com or hicksdesign.co.uk.
Offline
#5 2006-04-11 15:39:30
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Making a static home page
Create a section called ‘frontpage’ (or whatever). Set ‘uses page’ to ‘default’ and ‘on front page’ to ‘yes’. For all other sections set ‘on front page’ to ‘no’.
Create an article form (‘frontpage’ or whatever) with something like
<code>
<h2><txp:title /></h2>
<txp:body />
</code>
On the default page template, replace the existing article tag with <txp:article limit="1" form="frontpage" />
Write your article for the frontpage, assign it to section ‘frontpage’, hit ‘publish’ and it should be there.
Offline
#6 2006-04-11 22:17:52
- shorty114
- New Member
- Registered: 2006-04-11
- Posts: 3
Re: Making a static home page
Thanks. Worked great.
Offline
#7 2006-04-29 16:04:06
- richoid
- Member
- Registered: 2006-04-25
- Posts: 11
Re: Making a static home page
I have a variation…
My home page is static. But I still want a blog page (that isn’t the home page). I’ve set it all up, but the blog page (with code copied out of the original default page) lists no articles. The blog articles do show up in archives.
I still haven’t made the home page articles editable, but I think there’s enough in these support forums for me to figure that out. I have made a number of static pages, and those worked fine.
thanks.
Offline
#8 2006-04-29 17:03:03
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Making a static home page
You probably copied a <txp:article />
tag from your default page. If let’s say your blog page uses section ‘blog’ and your blog articles are in section ‘article’, then you’ll need <txp:article_custom section="article" />
to display them. <txp:article />
is context sensitive and will only show articles in the current section.
Offline
#9 2006-05-01 18:08:31
- richoid
- Member
- Registered: 2006-04-25
- Posts: 11
Re: Making a static home page
Thanks, Els…
Precisely what I needed.
The site’s working pretty well now at http://www.larrylansburgh.com
Offline
#10 2006-05-11 01:26:31
- watsonalgas
- New Member
- Registered: 2006-05-11
- Posts: 3
Re: Making a static home page
So will the articles posted under his blog show up in a category list? I’m trying the same thing, but when I try to get to the article through the category txp:popup dropdown, nothing shows up.
Offline
Pages: 1