<txp:yield /> single tag, 0 attributes

yield

The yield tag is a single tag which is used to return the inner content of the enclosing <txp:output_form> tag.

genealogy

Version 4.2.0

  • Added as a new tag
<txp:yield /> 1 examples

Inner Content

Given the following form named “example_form”:

   <div>
      This content is static and will be the same every time this form is invoked.
      <txp:yield />
   </div>

We can invoke it twice with different inner content each time:

  <txp:output_form form="example_form">
      Invoking "example_form" with some inner content.
   </txp:output_form>
   <txp:output_form form="example_form">
      Invoking "example_form" again, this time with different inner content.
   </txp:output_form>

And the result will be:

<div>
      This content is static and will be the same every time this form is invoked.
      Invoking "example_form" with some inner content.
</div>
<div>
      This content is static and will be the same every time this form is invoked.
      Invoking "example_form" again, this time with different inner content.
</div>

Other tags used: output_form