File tree Expand file tree Collapse file tree 3 files changed +29
-0
lines changed
Expand file tree Collapse file tree 3 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -272,6 +272,20 @@ These are totally dynamic in that any field you create for your category will au
272272
273273You may use this conditional to test whether the category shown is the active category or not, based on the dynamic URI segment.
274274
275+ ### ` {has_children} `
276+
277+ {exp:channel:categories channel="news" style="nested" show_empty="no"}
278+ <a href="{path='channel/index'}">{category_name}</a>
279+
280+ {if has_children}
281+ <button
282+ type="button"
283+ aria-haspopup="true"
284+ >children categories</button>
285+ {/if}
286+ {/exp:channel:categories}
287+ You may use this conditional to test whether the category shown is or isn't a parent category.
288+
275289## Category Dropdown Menu
276290
277291You can also display categories in a dropdown menu using the following code:
Original file line number Diff line number Diff line change @@ -249,6 +249,20 @@ There are several variables available for use inside the `{categories}{/categori
249249
250250You may use this conditional to test whether the category shown is the active category or not, based on the dynamic URI segment.
251251
252+ ### ` {has_children} `
253+
254+ {categories}
255+ <a href="{path='channel/index'}">{category_name}</a>
256+
257+ {if has_children}
258+ <button
259+ type="button"
260+ aria-haspopup="true"
261+ >children categories</button>
262+ {/if}
263+ {/categories}
264+ You may use this conditional to test whether the category shown is or isn't a parent category.
265+
252266### ` {category_description} `
253267
254268 {categories}
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ Which URL Schemes the content author is allowed to use in this URL field. Availa
2323
2424- ` http:// `
2525- ` https:// `
26+ - ` / ` ([ single slash protocol-relative URLs] ( https://en.wikipedia.org/wiki/Wikipedia:Protocol-relative_URL ) )
2627- ` // ` ([ protocol-relative URLs] ( https://en.wikipedia.org/wiki/Wikipedia:Protocol-relative_URL ) )
2728- ` mailto: `
2829- ` ftp:// `
You can’t perform that action at this time.
0 commit comments