Hello,
is it possible to call same snipet more times with different values of placeholders?
I have now this code in snipet:
$output = "";
$modx->setPlaceholder(’pollHeader’, ’test2’);
$output .= $modx->getChunk($chunkPoll);
$modx->setPlaceholder(’pollHeader’, ’test3’);
$output .= $modx->getChunk($chunkPoll);
return $output;
but i am getting chunk twice with test3 value...
--
John
@theboxer
noone know how to do that?
--
John
@theboxer
try that:
<?php
$output = "";
$ph['pollHeader']='test2';
$output .= $modx->parseChunk($chunkPoll,$ph,'[+','+]');
$ph['pollHeader']='test3';
$output .= $modx->parseChunk($chunkPoll,$ph,'[+','+]');
return $output;