You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tags/popup.md
+13-23Lines changed: 13 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ layout: document
3
3
category: Tags
4
4
published: true
5
5
title: Popup
6
-
description: Textpattern will replace this tag with a popup selector for browsing by section or category.
6
+
description: Textpattern will replace this tag with a selector for browsing by section or category.
7
7
tags:
8
8
- Navigation tags
9
9
---
@@ -21,53 +21,43 @@ tags:
21
21
<txp:popup />
22
22
~~~
23
23
24
-
The **popup** tag is a *single* tag. Textpattern will replace this tag with a popup selector for browsing by section or category.
24
+
The **popup** tag is a *single* tag. Textpattern will replace this tag with a select list for browsing by section or category, wrapped in an HTML `<form>`. Selecting an entry will automatically submit the form unless scripting is disabled, in which case a 'submit' button will be displayed too.
25
25
26
26
## Attributes
27
27
28
28
Tag will accept the following attributes (**case-sensitive**) as well as the {% include atts-global-link.html %}:
29
29
30
30
`section="section_name"`
31
-
: Jump to the selected category for the named section.
31
+
: Filter the selected category by the named section, instead of listing all articles that match the category. Only of use if `type="category"`.
32
32
: **Default:** unset.
33
33
34
34
`this_section="boolean"`
35
-
: Jump to the selected category for the currently active section.
35
+
: Filter the selected category by the currently active section, instead of listing all articles that match the category. Only of use if `type="category"`.
36
36
: **Values:**`0` (no) or `1` (yes).
37
37
: **Default:**`0`.
38
38
39
39
`type="type"`
40
40
: **Values:**`section`, `category`.
41
41
: **Default:**`category`.
42
42
43
-
### Common presentational attributes
44
-
45
-
These attributes, which affect presentation, are shared by many tags. Note that default values can vary among tags.
0 commit comments