rah_output_section_form

Published under current TXP projects

Outputs section based form, like <txp:output_form /> could, but with out need of any conditionals. A better explanation is located in Rahforum.biz / Blog

Download rah_output_section_form v0.3

Image: rah_output_section_form

Image: rah_output_section_form

List of features

Attributes

The tag is <txp:rah_output_section_form /> and attributes for it follow. The tag outputs section based form.

prefix
The prefix of the output forms. It’s the starting letters from xxx-MySectionName.
Default: prefix="s-" Example: "x-"

type
Which data output and append after prefix, section name or a category name. Valid values: s, c or full name versions section and category. By default outputs section and therefor a section form.
Default: type="section" Example: "category"

default
If prefix using section based form isn’t found, default form is instead used. Value should be name of the form which you want to use as a default. If value is left to unset, default form isn’t used.
Default: default="" (unset) Example: "mydefaultformname"

Example

Code: <txp:rah_output_section_form prefix="section_" default="theform" />

Outputs contents from forms named section_SectionName where the SectionName is the name of the section. So, it will output form in example: section_about, section_blog, section_links and so on.

Changelog

Version 0.3

Version 0.2

Version 0.1