Yes, getChunk() has been around for a long time. You do know that you can send an associative array of placeholders->values as a second argument to getChunk(), right?
<?php
$fields = array(
'placeholder1 => 'placeholder1 Value',
'placeholder2 => 'placeholder2 Value',
'placeholder3 => 'placeholder3 Value',
};
I think I was wrong about parseChunk(). The difference is that parseChunk() allows you to set the placeholder tag style and getChunk() doesn't.
parseChunk() should still work as long as you either use standard placeholder tags or set the last two arguments correctly, but it may not have been updated correctly to handle output modifiers.
------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using.
MODX info for everyone:
http://bobsguides.com/modx.html
$result = $modx->getChunk('MyChunk', $fields);
[ed. note: BobRay last edited this post 14 years, 6 months ago.]