<?php
if($modx->documentIdentifier == '1'){
[!Ditto? &parents=`3`&orderBy=`createdon ASC` &display=`1` &tpl=`testimonial_summary`!]
[!Ditto? &parents=`3`&orderBy=`createdon ASC` &display=`1` &tpl=`highlighted_project`!]
[!Ditto? &parents=`3`&orderBy=`createdon ASC` &display=`1` &tpl=`news_summary`!]
}
?>
getting this error Parse error: parse error in C:\wamp\www\modx10\manager\includes\document.parser.class.inc.php(770) : eval()'d code on line 3
Hi yasirhaleem,
you probably need to run the snippet via the MODx API -> http://wiki.modxcms.com/index.php/API:runSnippet
<?php
if($modx->documentIdentifier == '1'){
$testimonialOutput=$modx->runSnippet(
"news_summary",
array(
"tpl" => "<post><title>[+title+]</title><summary>[+summary+]</summary></post>"
)
);
echo $testimonialOutput."snippet";
}
?>I think, I would create a textarea-TV ’extrasection’ then in your template on the right place add [*extrasection*] and fill this TV on page 1 with your Ditto-calls.hahaaa - why going the easy way, when you can make it complicated
...i need to read posts more carefully