Posted By

thiswayup on 08/10/10


php cms modx

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


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

 / Published in: PHP


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.