We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24969
    • 120 Posts
    I would like to know the above answer? huh
      The important thing is not to stop questioning. Curiosity has its own reason for existing. One cannot help but be in awe when he contemplates the mysteries of eternity, of life, of the marvelous structure of reality. It is enough if one tries merely to comprehend a little of this mystery every day. Never lose a holy curiosity.

      -Albert Einstein (1879 - 1955)

      Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
      • 26931
      • 2,314 Posts
      Hi Rhyno,

      If embedding snippets within snippets remember to alternate the cache setting by setting the outer snippet to cached [[ and the inner one to uncached [!. For example:
      [[Wayfinder? &startId=`[!UltimateParent!]`]]
      http://wiki.modxcms.com/index.php/Snippet_call_anatomy
        • 24969
        • 120 Posts
        Thanks sharkbait, I was just reading that then I got your reply wink
          The important thing is not to stop questioning. Curiosity has its own reason for existing. One cannot help but be in awe when he contemplates the mysteries of eternity, of life, of the marvelous structure of reality. It is enough if one tries merely to comprehend a little of this mystery every day. Never lose a holy curiosity.

          -Albert Einstein (1879 - 1955)

          Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
          • 22303 MODX Staff
          • 10,725 Posts
          If you mean within the code of a snippet:
          <?php
          $output = $modx->runSnippet('snippetName', array('param1' => 'value1', 'param2' => 'value2'));
          ?>
            • 24969
            • 120 Posts
            Excellent OpenGeek.... Exactly what I needed!!!
              The important thing is not to stop questioning. Curiosity has its own reason for existing. One cannot help but be in awe when he contemplates the mysteries of eternity, of life, of the marvelous structure of reality. It is enough if one tries merely to comprehend a little of this mystery every day. Never lose a holy curiosity.

              -Albert Einstein (1879 - 1955)

              Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635