Hi. I have three crazy ideas about it.
1) I don’t know how differents your templates are, but maybe you could create only one template with phx and a snippet so that you can load another chunk for doc1.
doc1 (1)
doc2 (2)
I create a snippet called
chunk-swap:
<?php
$docid = $modx->documentIdentifier;
switch($docid) {
case 1:
return "{{ditto-call}}";
break;
default:
return "{{gallery}}";
break;
}
?>
In the template I put something like this, so that I get different chunks for children of doc1:
{{header}}
[[chunk-swap]]
[*content*]
{{footer}}
2) You could set doc1 to uncached and then use the redirect snippet found in the multilanguage tutorial (modx wiki) to another page with the choosen template.
3) Create the doc2 in the root and address the ditto call of doc1 to it