Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Problems with static pages
I have created static pages in the past (over a year ago), and when I want to create a new one, it doesn’t seem to work.
My about page is working fine, so is Downloads, but when I create a new section called Movies (it isn’t in the ‘topbar’ yet since it’s still under construction), and posted a sticky article under Movies, nothing seems to be appearing (www.saigoheiki.com/movies).
I merely copied over my previous page template for ‘about’ to the new page template for ‘movies’, which is:
<txp:output_form form="head" />
<body>
<div id="wrap"><div id="wrap2">
<txp:output_form form="header" />
<!-- Content ========================================== -->
<div id="main">
<txp:article limit=1 form="static_article" />
</div><!-- end #main -->
</div><!-- end #wrap2 -->
<txp:output_form form="sidebar" />
</div><!-- end #wrap -->
</body>
</html>
The static article form contains:
<h3><txp:title /></h3>
<txp:body />
I don’t seem to see what’s the problem!
Under Sections, I have created a ‘movies’ section, which uses the page of ‘movies’, and the default style. I have replicated everything exactly as the ‘about’ section I created earlier, but for some reason, ‘movies’ doesn’t seem to be displaying the static article I wanted.
Would appreciate the help! I already have a nagging headache now trying to solve this.
Offline
#2 2007-01-16 02:13:16
- Nell
- Member
- From: Mexico City, Mexico
- Registered: 2005-06-21
- Posts: 48
Re: Problems with static pages
Try saving your static article with the “Sticky” status, and using this article form:
<txp:article limit=1 form="static_article" status="sticky" />
Offline
Re: Problems with static pages
Odd, I’ve tried the above already, but I tried it again and this time it works.
The funny thing is, my previous static pages does not have the status="sticky"
code in it, but when I posted an article with the Sticky status under the correct section, it works.
Offline
Re: Problems with static pages
If you want your page to be really static then call the article with an id using article_custom. Then, as they say, you ain’t gonna get nothing but that exact article.
<txp:article_custom id="55" form="static_article" />
That’s how I take care of “about us” style content on a static page.
Hope that helps
Last edited by mrdale (2007-01-16 16:45:08)
Offline
Re: Problems with static pages
I can’t believe I forgot this! I believe someone did told me before eons ago, but then again my memory isn’t perfect. Thanks a lot mrdale!
Offline
Pages: 1