We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3749
    • 24,544 Posts
    Sorry, typos in my code. There was a missing closing ’)’ in the if statement (a bad habit of mine when I’m in a hurry). There was also an error in my snippet tag (forgot the "?"). My apologies. In my defense, I had just driven an RV towing a car 230 miles that included two major mountain passes.

    (fixed in the earlier code).


    Your code is fine, but would be better if you put $output back in and returned it.
      Did I help you? Buy me a beer
      Get my Book: MODX:The Official Guide
      MODX info for everyone: http://bobsguides.com/modx.html
      My MODX Extras
      Bob's Guides is now hosted at A2 MODX Hosting