Content last modified Monday 6 March 2017
hop to #bottom
Author:
Current version:
0.2
About It:
Get it:
Rate it:
  • Helpful?
  • 0 Yes
  • 1 No
Flag it:

If you'd like to provide updated information and do not have access to directly edit, please contact the site admin; thanks!

rah_output_section_form

Rah_output_section_form has been superseded by core. The form name prefixing can be done with just core output_form tags with the tags-in-tag support added in Textpattern v4.0.7 release.

The only difference is that output_form will invoke informal error messages when a missing form partial is encountered. These message are informal and harmless, and will only be visible when the site is in a debugging or a testing mode.

Fallback support can be provided with variables tags and yield allows building factory partials with just core tags.

To output a form corresponding to the current section:

<txp:output_form form='sidebar-<txp:section />' />

Using <txp:yield /> to power building factories:

<txp:output_form form="call">s-<txp:section /></txp:output_form>

Where in the above a form named call would contain:

<txp:variable name="form"><txp:output_form form='<txp:yleid />' /></txp:variable>
<txp:if_variable name="form" value="">
	No Form named <txp:yield /> found, showing fallback.
<txp:else />
	<txp:variable name="form" />
</txp:if_variable>

The form call can contain any type of processing that is done automatically when the factory partial is used to call other form partials.

Article Request Count:

Archived [?]: built-in tag, superseded

Keywords/tags:
Initially released:
2008/7
Posted here:
30 Oct 2008
Article modified:
25 Jul 2012

If there is a comment form at the Information URL, you may want to leave your comments/questions there or at the Forum thread for quicker feedback. Otherwise, comment away:

Your comment will NOT be submitted until you click the 'Submit' button on the next pageload.

Subscribe to this article's comments RSS feed. [ ? ]   View Recent Comments across the site.

You know you want to visit the Archives.

Browse

Categories


Articles

There are also tag clouds, 'cause those are fun.
Published with Textpattern