On this page:


<txp:popup />

The popup tag is a single tag. Textpattern will replace this tag with a popup selector for browsing by section or category.


Tag will accept the following attributes (case-sensitive):

Jump to the selected category for the named section.
Default: unset.
Jump to the selected category for the currently active section.
Values: 0 (no) or 1 (yes).
Default: 0.
Values: section, category.
Default: category.

Common presentational attributes

These attributes, which affect presentation, are shared by many tags. Note that default values can vary among tags.

class="class name" v4.3.0+
HTML class to apply to the wraptag attribute value.
Default: tag name or unset (see class cross-reference).
Label prepended to item.
Default: unset (but see label cross-reference for exceptions).
HTML element to wrap (markup) list block, specified without brackets (e.g. wraptag="ul").
Default: unset (but see wraptag cross-reference for exceptions).


Example 1: Browse by category popup selector

<txp:popup type="category" wraptag="p" />

Example 2: Popup selector with custom label

<txp:popup label="Browse this site" type="category" wraptag="p" />


Version 4.6.0

type attribute also accepts full string name instead of just s and c.

Version 4.3.0

class attribute added.

See something wrong in this document? Outdated info, a broken link, faulty code example, or whatever? Please open an issue and we’ll investigate.