Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-01-15 17:15:52

Saigo
Member
Registered: 2005-01-02
Posts: 60
Website

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

#3 2007-01-16 10:42:49

Saigo
Member
Registered: 2005-01-02
Posts: 60
Website

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

#4 2007-01-16 16:44:51

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

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

#5 2007-01-17 15:00:16

Saigo
Member
Registered: 2005-01-02
Posts: 60
Website

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

Board footer

Powered by FluxBB