Create this snippet:
<?php
$sourceArray = array(
array(
'waarde' => 'Waarde 1',
'andere' => 'Andere waarde',
'config' => array(
'thumb' => '1.jpg',
'keyVuller' => 'test'
)
),
array(
'waarde' => 'Waarde 2',
'andere' => 'Nog andere waarde',
'config' => array(
'keyVuller' => 'test'
)
),
array(
'andere' => 'Andere waarde',
'waarde' => 'Waarde 3',
'config' => array(
'keyVuller' => 'test'
)
)
);
$output = '';
foreach($sourceArray as $item) {
$output .= $modx->getChunk('getRowsTpl', $item);
}
return $output;
And try this chunk: (call it "getRowsTpl")
Waarde: [[+waarde]], thumb: [[+config.thumb]]<br />
I’m sure we all agree, that after one loop...the config.thumb should be empty?
Well it isn’t! All other values ARE...why is this so? Is it a feature...or a bug?
It doesn’t help to call the placeholder uncached.
Thanks in advance,
b03tz.