Hi,
thanks everyone for the feedback - will try some of your suggestions tonight but thought I would post some more detail.
I have a document that calls the eform snippet - [!eForm? &formid=`quick_enquiry` &to=`
[email protected]` &tpl=`eFormQuickEnquiry` &report=`eFormReportQuickEnquiry` &thankyou=`eFormQuickEnquiry` &subject=`Quick Enquiry`!]
I then have a snippet that is called from a template - [[displayFeatures]] - this is used to control what appears in the right column on each page and the document above is one of the possibilities. Here is the code for the displayFeatures snippet: -
<?php
$pageId = $document[’id’];
$tvrFeatures = $modx->getTemplateVar("1", "*", $pageId, 1);
$featureIdStr = $tvrFeatures[’value’];
$featureIdArray = explode("||", $featureIdStr);
$output = "";
foreach ($featureIdArray as $id) {
$featureDocument = $modx->getDocument($id);
$output .= "<div id=\"ad\">" . $featureDocument[’content’] . "</div>";
}
echo $output;
?>
So the call to the eform snippet is within the $featureDocument[’content’] called above it is not being executed.
Thanks
Denise