Textpattern CMS Template Tags

<txp:popup /> single tag, 3 attributes

popup

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

attributes

type="c" 
  • Section or Category.
  • Values: s (section) or c (category).
section="unset" 
  • Jump to the selected category for the named section.
this_section="0" (boolean)
  • Jump to the selected category for the currently active section.

presentation

label="Browse" 
  • Label prepended to item (or as first list item, where appropriate).
  • if wraptag is available and is set to ol or ul, the label will be the first list item.
wraptag="unset" 
  • (X)HTML tag (without brackets) to wrap around the list.
class="unset" 
  • (X)HTML class attribute to apply to the wraptag.

genealogy

Version 4.3.0

  • class attribute added
<txp:popup /> 2 examples

Browse by category popup selector

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

Popup selector with custom label

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