Hello dcb,
I think both of your problems are due to current modx parser : ’=’ sign, new lines, and some other characters that I don’t remember now, are not supported into snippet call parameters.
Modx Revolution (next generation of modx) parser is different and will remove this restriction.
And, about your first question, as far as I know, it’s not possible (unless hacking the core) to specify the order for parsing.
For now, to solve your problem, you can try this modification (tested a little, seems to work) :
- change your snippet call parameter to &altContent=`#CONTENT#`
- modify "swfobject.class.php" to treat this marker to retrieve content : in setConfig function, around line 163, add bold lines
[tt]case ’altContent’:
if ($modx->getChunk($item)) {
$config[$key] = $modx->getChunk($item);
}
else if ($item == "#CONTENT#") {
$config[$key] = $modx->documentObject[’content’];
}
else {
$config[$key] = $item;
}
break;
[/tt]
Hope it will fit your needs