Quote from: The at Jan 30, 2008, 05:06 PM
Sorry to be dense here, but from the looks of the code it looks like it should be replacing [+mydittoid_ditto_object+], yes?
[!Ditto? &id=`home_events` &parents=`39` &tpl=`eventTradeshowHomepage` &display=`1` &save=`3`!]
[+home_events_ditto_object+]
[+home_events_ditto_resource+]
That doesn’t output anything, however. I’m probably missing something obvious, but I could use some help if anybody’s got a moment. Thx.
(Page is uncached. PHx is installed (problem, maybe?). Using Ditto 2.0.2.
PHx will parse out your placeholders before Ditto gets a chance to create them. You can call Ditto cached, page uncached and it might correct this behavior. Else, you’d have to store your placeholders in a chunk, then write a snippet to retrieve that chunk:
[!getChunk? &chunk=`chunkNameHere`!]
//<?php
// getChunk snippet
$chunk = isset( $chunk ) ? $chunk : null;
return ( !$chunk ) ? '' : $modx->getChunk( $chunk );
I’ve used this technique in the past when PHx is conflicting with placeholders.
EDIT: In regards to placeholders [+ditto_resource+] and [+ditto_object+], a more detailed explanation can be found below