Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
Re: replace plugin_if_section_frontpage with TXP CORE TAGS
Even with the /author/ browsing ?
Offline
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
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline