We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14267
    • 113 Posts
    Is there a syntax yet to pass a TV to a snippet as a parameter, e.g. [[ProtectEmail?email=[*contactemail*]]]?

    I could put the code to do that in each snippet itself, but obviously it would be better built into the parser.
      • 32963
      • 1,732 Posts

      try using $modx->getTemplateVar("contactemail"). See the "API Quick Reference Guide" document
        xWisdom
        www.xwisdomhtml.com
        The fear of the Lord is the beginning of wisdom:
        MODx Co-Founder - Create and do more with less.
        • 14267
        • 113 Posts
        Sure, but I’m talking about passing it in a snippet call, not within a snippet itself. It seems there currently isn’t a way to do that, so I’ll submit it as a wishlist item. Wouldn’t this be a simple but nice thing to build into the parser?
          • 32963
          • 1,732 Posts
          Quote from: jlarson at Jun 10, 2005, 05:31 PM

          Wouldn’t this be a simple but nice thing to build into the parser?

          We will have to look into this some more
            xWisdom
            www.xwisdomhtml.com
            The fear of the Lord is the beginning of wisdom:
            MODx Co-Founder - Create and do more with less.