popup
From Textbook
<txp:popup />
The popup tag is a single tag. Textpattern will replace this tag with a popup selector for browsing by section or category.
Contents |
Attributes
Tag will accept the following attributes (case-sensitive):
- label="text"
- Label for the top of the list.
- Default:
Browse. - type="type"
- Section or Category.
- Values:
s(section) orc(category). - Default:
c - wraptag="text"
- (X)HTML tag (without brackets) to wrap around list.
- Default: unset.
- section="section_name"
- Jump to the selected category for the named section.
- Default: unset.
- this_section="boolean"
- Jump to the selected category for the currently active section.
- Values:
1(yes) or0(no). - Default:
0.
Examples
Example 1: Browse by category popup selector
<txp:popup type="c" wraptag="p" />
Example 2: Popup selector with custom label
<txp:popup label="Browse this site" type="c" wraptag="p" />




