RESOURCE Binding
Last updated Apr 6th, 2019 | Page history | Improve this page | Report an issue
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$306 per month—let's make that $500!
Learn moreWhat is the @RESOURCE Binding?¶
The @RESOURCE Binding returns the parsed contents of any specified Resource.
Syntax¶
@RESOURCE resource_id
Binds the variable to a Resource, where resource_id is the ID of the Resource. The returned value is a string containing the parsed content of the Resource.
Usage¶
To output the contents of a Resource with ID of 12:
@RESOURCE 12
See Also¶
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$306 per month—let's make that $500!
Learn more