Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
static index page
How can you build a static index page, with its own design/template? – I’m interested in the simplest way of doing it, with easy step-by-step instructions.
Thanks!
Last edited by jameslomax (2006-01-06 23:55:39)
Offline
#2 2006-01-07 00:13:22
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Offline
Re: static index page
I use the <a href=“http://forum.textpattern.com/viewtopic.php?id=4526”>glx_if</a> plug in for that
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: static index page
> zem wrote:
> Which part of the FAQ are you having trouble with?
I’ve followed those instruction and I’ve built a page, but don’t know how to integrate it into the site. Specifically, what I have to do to make it the default index page, which is currently the ‘latest post’. And secondly, I’m confused re. how to style it differently from the default css-driven style.
Offline
Re: static index page
jameslomax, if you want your homepage to be static, you delete the <txp:article />
tag from the default template.
Then you hand-code your content into the default template or use the technique outlined here to display your contents.
Offline
#6 2006-01-07 17:16:29
- marknumberm
- Member
- From: Minneapolis
- Registered: 2005-11-29
- Posts: 46
Re: static index page
I think there are several ways to skin this cat, but here’s one way:
On your default page template (which you’ll find under Presentation > pages,) have conditional tags like this:
<txp:if_section name="">
<txp:article_custom form="FrontPage" id="9" />
</txp:if_section>
The id=“9” bit would be changed to whatever is the id of the article you’re using for your static front page.
You might want to also set that article’s status to “sticky” so that it doesn’t show up in searches.
Then go into Presentation > sections and set the “Default” section to “Uses Style: Home.”
Then go into Presentation > styles and edit the “Home” style sheet to however you want to style the static front page.
Last edited by marknumberm (2006-01-07 17:17:39)
Offline
#7 2006-01-07 17:23:04
- marknumberm
- Member
- From: Minneapolis
- Registered: 2005-11-29
- Posts: 46
Re: static index page
Oh, and to use the exact tags that I’ve listed, you’d also need to go into presentation > forms and create a form called FrontPage that had whatever you wanted included for content.
It might just be <txp:body />
.
Of course you can use those very handy “Useful tags” that appear to the left of the text field to include whatever else you wanted.
Last edited by marknumberm (2006-01-07 17:24:09)
Offline
#8 2006-01-07 22:49:22
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: static index page
Specifically, what I have to do to make it the default index page, which is currently the ‘latest post’. And secondly, I’m confused re. how to style it differently from the default css-driven style.
Set Uses Page and Uses Style to your static page template and style for the Default section under presentation > sections. (Step 3 in the FAQ, though it doesn’t mention CSS)
Alex
Offline
Pages: 1