Posted By

thiswayup on 08/10/10


Tagged

php cms modx


Versions (?)

Getting all the TV / template variables from a speciifc document for Modx Evolution


 / Published in: PHP
 

URL: joelee.me.uk

If you want to get all the TV from a specific document

  1. global $modx;
  2. $tvArray = array('link','phone'); //array of the TV names you want to retrieve
  3. $traffInfo = $modx->getTemplateVars($tvArray,'*',29);

Report this snippet  

You need to login to post a comment.