Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-11-25 10:39:52

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

Assign articles to default page

The site I’m building has a different strap line in each page of the site. that includes the home (default) page. So, I’ve created a parent category labelled ‘strap-lines’ and created sub categories for each page. I then use articles for the straplines but assigning an article specifically to the default page doesn’t seem to be possible as it doesn’t appear in the ‘sections’ select menu.

Can txp be configured to do this?

Offline

#2 2009-11-25 11:32:44

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,315

Re: Assign articles to default page

If I understand you right, translated into TXP, you’re looking for the setting “On front page”, correct? Presentation > Sections


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#3 2009-11-25 14:59:07

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

Re: Assign articles to default page

No, I want to create an article then assign it to the homepage only. Every section I’ve created appears in the drop down other than ‘default’

Offline

#4 2009-11-25 15:43:46

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,250
Website GitHub Mastodon Twitter

Re: Assign articles to default page

Hi eafy_loader,

You can make it into sticky and use the glx_if plugin.

something like:

<glx:if_frontpage>
<txp:article_custom id="xx" status="sticky">
<txp:body />
</txp:article_custom>
</glx:if_frontpage>

Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB