Skip to content

Commit 758f052

Browse files
authored
Add valueless children example
1 parent f977d0b commit 758f052

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tags/category_list.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Tag will accept the following attributes (**case-sensitive**) as well as the {%
3939

4040
`children="integer"` <span class="footnote warning">v4.7.0+</span>
4141
: Can limit the list depth to defined levels below the parent category.
42-
: **Values:** `0` (no children, i.e. only show one level below the parent) or `n` (show all nested categories and 'flatten' the list at the level `n`).
42+
: **Values:** `0` (no children, i.e. only show one level below the parent) or `n` (show all nested categories and 'flatten' the list at the level `n`). Use the attribute without a value to mimic the nested structure of the categories.
4343
: **Default:** `1`.
4444

4545
`exclude="category name(s)"` <span class="footnote warning">v4.0.4+</span>
@@ -133,6 +133,13 @@ These attributes, which affect presentation, are shared by many tags. Note that
133133
<txp:category_list break="li" wraptag="ul" />
134134
~~~
135135

136+
Or as a nested unordered list, starting at the "product-type" node:
137+
138+
~~~ html
139+
<txp:category_list break="li" wraptag="ul" parent="prodyct-type" children />
140+
~~~
141+
142+
136143
### Example 3: Set active class using the container tag
137144

138145
~~~ html

0 commit comments

Comments
 (0)