because it's calling those 3 PHP values, & i guess ModX requires "all" php to be in a snippet.
Natively yes, MODX does use snippets for PHP code. However, the pdoTools package comes with a
built-in Fenom parser that could certainly have simplified the solution.
https://github.com/fenom-template/fenom/blob/master/README.md
-
- 1,154 Posts
Great to hear things worked out finally! You put in good effort throughout, congrats to you most of all. And thanks for the working solution which may help others in the future.
About the title, I just didn't know why no one else jumped in, so no worries there.
I got a lot of help when I showed up here years ago, so I am just trying to pass it on! Feel free to come back if you need more help!