Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-12-20 19:37:21

leafy_loader
Member
Registered: 2008-09-25
Posts: 96

Home page (default section) welcome article

The site I’m constructing with textpattern has a few paragraphs of text on the homepage. I want the client to be able to edit this text so creating an article for it seems like the logical thing to do. The home page is the default section but there is no way to assign the article to the default section. This seems odd to me. How should I approach this?

Offline

#2 2009-12-20 19:48:19

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Home page (default section) welcome article

I usually create a separate section (you can name it something like ‘home’ so that the client can easily locate it) that is not linked to anywhere on the site, assign the front page article to it, and call it on the page with <txp:article_custom id="123" />. If you are using the default page template for other sections than default, wrap this in <txp:if_section name="default"></txp:if_section>.

Offline

Board footer

Powered by FluxBB