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...?
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...?
-
☆ 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 ($).
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