Skip to main content

Resource

Resource loop lists resources.
{loop type="resource" name="the-loop-name" [argument="value"], [...]}

Arguments

ArgumentDescriptionDefaultExample
codeThe resource codecode="a_code"
orderA list of values see sorting possible valuesidorder="title"
profileThe profile idprofile="4"

Plus the global arguments

Outputs

VariableValue
$CHAPOthe resource chapo
$CODEthe resource code
$CREATABLEOnly if profile is not null
$DELETABLEOnly if profile is not null
$DESCRIPTIONthe resource description
$IDthe content id
$IS_TRANSLATEDcheck if the content is translated
$LOCALEthe locale (e.g. fr_FR) of the returned data
$POSTSCTIPTUMthe resource postscriptum
$TITLEthe resource title
$UPDATABLEOnly if profile is not null
$VIEWABLEOnly if profile is not null

Plus the global outputs

Order possible values

Arguments

Ascending valueDescending valueSorted fields
codecode-reversecode
idid-reverseid
titletitle-reversetitle