Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-01-09 21:16:58

jmart
Member
Registered: 2008-08-25
Posts: 68

how to omit an element from only one certain section.

I want to omit a certain a picture from a certain section, but leave it up on all other sections. What’s the best way to do this? I know I can do <txp:if_section> but I’d have to list all sections but that one section and that’s cumbersome especially when I add more sections later on.

Offline

#2 2009-01-09 21:24:41

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: how to omit an element from only one certain section.

<txp:if_section name="excludedSection">
<txp:else/>
<imgcode/>
</txp:if_section>

My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

Board footer

Powered by FluxBB