Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-12-12 05:08:22

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

replace plugin_if_section_frontpage with TXP CORE TAGS

I am posting this here, instead of in Stuarts thread, because I thought it easier to find this way ? :)

So, I use the following example as a way of producing content I want to show up on the section front page (vs. categories withing section, or individual articles within section)

<code>
<txp:if_category>
<txp:else />
<txp:if_individual_article>
<txp:else />
<h3 class=“pagetitle”>recently added</h3>
<div class=“thumb”> <ul> <txp:article form=“front_thumb” sortby=“posted” limit=“4” /> </ul>
</div><!—close-thumb—>
</txp:if_individual_article>
</txp:if_category>
</code>

By leaving the else statements blank, nothing gets output unless it is the front page of the section because their are just those three main types of content seperation (without getting into live and sticky)

Hope that helps, it helped me :)

Matthew


Offline

#2 2005-12-12 06:02:40

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: replace plugin_if_section_frontpage with TXP CORE TAGS

Even with the /author/ browsing ?

Offline

#3 2005-12-12 12:46:31

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: replace plugin_if_section_frontpage with TXP CORE TAGS

Jeremie,
Whaddya mean? I’d be interested to know.
I don’t browse for categories, and I don’t browse by author.

My author’s are set up by section,
and the categories are types/mediums of art

M


Offline

Board footer

Powered by FluxBB