kaffa / textpattern

Automatically exported from code.google.com/p/textpattern
0 stars 0 forks source link

Proposal for a new txp:if_yield tag #344

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
This is a proposal for a new txp:if_yield tag.  Yield is all about content, by 
default I've built in a "trim", so that whitespace is automatically ignored.

Usage:

<txp:if_yield> ... </txp:if_yield>
- condition true if txp:output_form tag in container mode, false if single tag

<txp:if_yield value="xyz"> ... </txp:if_yield>
- condition true if trimmed yield matches supplied value

<txp:if_yield value="xyz" trim="0"> ... </txp:if_yield>
- condition true if untrimmed yield matches supplied value

And to make life easier in other areas the current txp:yield tag could be given 
a 'trim' attribute as well.

Enclosed is a patch.

Original issue reported on code.google.com by i...@greatoceanmedia.com.au on 16 Dec 2012 at 10:23

Attachments:

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r5074.

Original comment by jukka.m.svahn on 16 Dec 2012 at 11:43