Hi,
I have a taxonomy list and a checklist on my content type, on the taxonomy list the separator is correctly between the values, on the checklist there is also a comma-separator after the last value.
i.e.
taxo list: one, two, three (correct)
checklist: one, two, three, (not correct)
I have found the following solution:
on theme/semantic-content-field.tpl.php
find
if ($delta < (count($items) - 1)) {
print $item_separator;
}
replace with:
if ($delta < (count($items) - 1)) {
if (!$items[$delta+1]['empty']) {
print $item_separator;
}
}
so we check if the following item, if it's not empty we can add the separator.
I have print_r($items) and found that empty (but fewer checked) values are in the array of the checklist, even if they are empty.
[0] => Array
(
[value] => one
[safe] => one
[#delta] => 0
[view] => one
[empty] =>
)[1] => Array
(
[value] => two
[safe] => two
[#delta] => 1
[view] => two
[empty] =>
)[2] => Array
(
[value] =>
[safe] =>
[#delta] => 2
[view] =>
[empty] => 1
)
Sorry for my english, hope you understand ...