I am trying to get the content of pages I have built to show up in other pages. Is there a specific call or snippet available where I can specify the page id and then have the content from a different page to show up?
This sounds quite interesting...if I use a * will it also retrieve the TV’s of that document?
I’ll have to take a look...
Thanks,
Taff
[EDIT]
getTemplateVarOutput is the baby I was after...I can even use it to retrieve other Document properties like content createdon etc etc
Put this bit of code in a snippet to see it working...
$doc_id = 1; //The document from which we want to retrieve the TVs
$results=$modx-> getTemplateVarOutput("*", $doc_id);
print_r($results);
Thanks for the pointer though Scotty.
[/EDIT]
Adrian Lawley: www.adrianlawley.com
Create a template variable and use the @DOCUMENT binding.
Andy