We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 29076
    • 615 Posts
    I have the same problem. I try this snippetcall
    [!getField? &parent=`1` &parentLevel=`1`!]
    inside a chunk, but the only result is the snippetcall it self.
    That is, calling the snippet uncached shows nothing, calling the snippet uncached shows the snippetcall it self.

    Hopefullt there is a workaround on this.

    Thanks.
      I think, thererfor I am! But what I am, and why...?
      • 7231
      • 4,205 Posts
      Give this a try:
      [!GetField? &parent=`1` &parentLevel=`1`!]


      I am pretty sure that snippets are case sensitive and GetField is uppercase G and F.
        [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

        Something is happening here, but you don't know what it is.
        Do you, Mr. Jones? - [bob dylan]
        • 29076
        • 615 Posts
        Thanks for the answer, but It’s not the case. The strange thing is that both getField and GetParent doesn’t work, but a cached call to AjaxSearch works.

        Can it be something about the way the snippets are programmed, related to old contra newer programming for later versjons of MODx?
          I think, thererfor I am! But what I am, and why...?
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          @BobRay: Your code had this line:
          $doc = $modx->getDocument(&docID);

          That should have been
          $doc = $modx->getDocument($docID);

          the paramter (&) becomes a variable name ($).
            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
            • 3749
            • 24,544 Posts
            Quote from: sottwell at Jan 21, 2008, 12:49 AM

            @BobRay: Your code had this line:
            $doc = $modx->getDocument(&docID);

            That should have been
            $doc = $modx->getDocument($docID);

            the paramter (&) becomes a variable name ($).

            It sure does. Good catch.
            Bob
              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