Folder tree
Folder tree loop, to get a folder tree from a given folder to a given depth.
{loop type="folder-tree" name="the-loop-name" [argument="value"], [...]}
Arguments
Argument | Description | Default | Example |
---|---|---|---|
depth | The max depth | example : depth="5" | |
exclude | A single or a list of folder ids to exclude for result. | exclude="5,72" | |
folder * | A single folder id. | folder="2" | |
return_url | A boolean value which allows the urls generation. | yes | return_url="no" |
visible | Whatever we consider hidden folder or not. | true | visible="false" |
Plus the global arguments
Outputs
Variable | Value |
---|---|
$CHILD_COUNT | |
$ID | the folder id |
$LEVEL | |
$PARENT | the parent folder |
$TITLE | the folder title |
$URL | the folder URL |
$VISIBLE | whatever the folder is visible or not |
Plus the global outputs