Skip to main content

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

ArgumentDescriptionDefaultExample
depthThe max depthexample : depth="5"
excludeA single or a list of folder ids to exclude for result.exclude="5,72"
folder *A single folder id.folder="2"
return_urlA boolean value which allows the urls generation.yesreturn_url="no"
visibleWhatever we consider hidden folder or not.truevisible="false"

Plus the global arguments

Outputs

VariableValue
$CHILD_COUNT
$IDthe folder id
$LEVEL
$PARENTthe parent folder
$TITLEthe folder title
$URLthe folder URL
$VISIBLEwhatever the folder is visible or not

Plus the global outputs