Folder
Folder loop lists folders from your shop.
{loop type="folder" name="the-loop-name" [argument="value"], [...]}
Arguments
| Argument | Description | Default | Example |
|---|---|---|---|
| content | A single content id. | content="3" | |
| content_count_visible | This parameter controls how content is counted. If 'yes' (the default) only visible contents are counted, 'no': only hidden contents are counted, '*': all contents are counted. | yes | content_count_visible="*" |
| current | A boolean value which allows either to exclude current folder from results either to match only this folder | current="yes" | |
| exclude | A single or a list of folder ids. | exclude="2", exclude="1,4,7" | |
| id | A single or a list of folder ids. | id="2", id="1,4,7" | |
| need_content_count | A boolean. If set to true, the loop will return the number of contents in each folder and its sub-folders | true (for backward-compatibility) | need_content_count="yes" |
| need_count_child | A boolean. If set to true, the loop will return the number of sub-folders of each folder | true (for backward-compatibility) | need_count_child="yes" |
| not_empty | (not implemented yet) A boolean value. If true, only the folders which contains at leat a visible content (either directly or trough a subfolder) are returned | no | not_empty="yes" |
| order | A list of values see sorting possible values | manual | order="random" |
| parent | A single folder id. | folder="3" | |
| title | Title of the folder. | title="My folder" | |
| visible | A boolean value. | yes | visible="no" |
| with_prev_next_info | A boolean. If set to true, $PREVIOUS and $NEXT output arguments are available. | false | with_prev_next_info="yes" |
Plus the global arguments and search arguments
Outputs
| Variable | Value | If with_prev_next_info='true' | If with_prev_next_info='false' | other |
|---|---|---|---|---|
| $CHAPO | the folder chapo | ✅ | ✅ | |
| $CHILD_COUNT | Number of subfolders contained by the current forlder. | ✅ | ✅ | Only available if need_count_child parameter is set to true |
| $CONTENT_COUNT | the number of visible contents for this folder. | ✅ |