may be this doesn’t process element-tags. I’m not sure about your situation. You can try to get the TV as object and try $tv->process() or put the result in a new modChunk and process that chunk.
It should be possible to process the wayfinder-tags in your TV-content.
I think you want this:
<?php
$tv = $modx->getObject('modTemplateVar', array('name'=>'footer'));
$footer = $tv->renderOutput();
Note that this will be a little faster if you know the ID of the TV (replace 12 with that ID):
<?php
$tv = $modx->getObject('modTemplateVar', 12);
$footer = $tv->renderOutput();
Thanks for the responses.
I’ve tried both suggested methods and the snippets still display as text. A bit hacky but in the meantime I’m going to extract the snippets and use runSnippet.
Quote from: Gibbs at Jul 07, 2011, 03:34 AM
Thanks for the responses.
I’ve tried both suggested methods and the snippets still display as text. A bit hacky but in the meantime I’m going to extract the snippets and use runSnippet.
That’s very odd. What happens if you just put the snippet tag in the page content? Is is possible that you’re using Evolution-style tags in the TV?