Resource
Resource loop lists resources.
{loop type="resource" name="the-loop-name" [argument="value"], [...]}
Arguments
| Argument | Description | Default | Example |
|---|---|---|---|
| code | The resource code | code="a_code" | |
| order | A list of values see sorting possible values | id | order="title" |
| profile | The profile id | profile="4" |
Plus the global arguments
Outputs
| Variable | Value |
|---|---|
| $CHAPO | the resource chapo |
| $CODE | the resource code |
| $CREATABLE | Only if profile is not null |
| $DELETABLE | Only if profile is not null |
| $DESCRIPTION | the resource description |
| $ID | the content id |
| $IS_TRANSLATED | check if the content is translated |
| $LOCALE | the locale (e.g. fr_FR) of the returned data |
| $POSTSCTIPTUM | the resource postscriptum |
| $TITLE | the resource title |
| $UPDATABLE | Only if profile is not null |
| $VIEWABLE | Only if profile is not null |
Plus the global outputs
Order possible values
| Ascending value | Descending value | Sorted fields |
|---|---|---|
| code | code-reverse | code |
| id | id-reverse | id |
| title | title-reverse | title |