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"
visibleWhatever we consider hidden folder or not.truevisible="false"

Plus the global arguments

Outputs

VariableValue
$CHILD_COUNTthe number of child folders
$IDthe folder id
$LEVELthe folder level
$PARENTthe parent folder
$TITLEthe folder title
$URLthe folder URL
$VISIBLEwhatever the folder is visible or not

Plus the global outputs