This question has been answered by Bruno17. See the first response.
You'll need a snippet to explode() the string into an array using the comma, then you can set the resulting array elements as placeholders to use as [[+path1]], [[+path2]] etc.
http://php.net/manual/en/function.explode.php
https://rtfm.modx.com/revolution/2.x/developing-in-modx/other-development-resources/class-reference/modx/modx.setplaceholders
$tvValue = $modx->resource->getTVValue('IMAGE'); $myString = "$tvValue"; $myArray = explode(',', $myString);
$values = explode(',',$modx->resource->getTVValue('IMAGE')); $i = 1; foreach ($values as $value){ $modx->setPlaceholder('path'.$i,$value); $i++; } return '';
something like that:
$values = explode(',',$modx->resource->getTVValue('IMAGE')); $i = 1; foreach ($values as $value){ $modx->setPlaceholder('path'.$i,$value); $i++; } return '';
But sounds like you could use MIGX for what you are doing.
I see.
Well then, and if the values doesn't need to be updated from manager, then you don't need to change anything.
Was thinking the customer adds a commaseparated list of image-pathes to create a image-gallery.
print_r($values);
what do you get, when you print out the values before the loop
print_r($values);