Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
, if I'm not mistaken, then so. But this is in templates and chunks.
If we are talking about snippets, then I recommend reading a series of articles about xPDO , where this process is quite accessible and described in detail. One of the articles contains the following code:
$res = $modx->getObject('modResource', 16);
$tv = $res->getTVValue(4);
return $tv;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question