We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28042 ☆ A M B ☆
    • 24,524 Posts
    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
      Studying MODX in the desert - http://sottwell.com
      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
      Join the Slack Community - http://modx.org
      • 46886
      • 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!
        • 29059
        • 88 Posts
        Quote from: sottwell at Jan 25, 2016, 08:00 PM
        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

        @sottwell,
        thanks for your input. i would be interested in knowing more of what you mean. remember, i'm not a PHP programmer. so if you want, please provide an example, or show me what you mean with my code.
        if you don't want to, i understand, & that's okay, since what i have is working now.
        .peace.:.jason.