VAR
There is a new related option for the VAR BB-Code.
Render a page's custom field:
Code:
[var]field|myFieldName[/var]
Get the raw value for the page's custom field:
Code:
[var]field|myFieldName|raw[/var]
Render a field from a different page:
Code:
[var]field|myFieldName|Prefix:PageTitle[/var]
(add |raw to get the raw value)
Note that when saving a page, values inherited from a template are not yet available to VAR, and cannot be made available -- there would be a chicken vs egg problem. This means you should not use VAR-field to retrieve values inherited from a template for certain purposes like: generating a link, defining a Wanted Category, passing to another template. In these cases, you must set a custom field value for the page itself in order for it to be available.
Bookmarks