Unlike the @PDO_FILE approach, this approach eliminates the need to save a resource during development. Additionally, all values are not stored in MODX chunk properties within the resource itself, which can cause issues when using a symbol such as ` in your content.
- Add a Snippet called
pdoChunkand place the codepdochunk.snippet.php. - Create a ContentBlocks field and use the code
ContentBlocks field templatefor the template value. - Make sure you have set the System Setting
pdotools_elements_pathto the correct path.