Hi Marco,
If you add the custom function to the plugin file i made:
function iwp_ticket_30354_change_delimiter($str)
{
$parts = explode(',', $str);
$parts = array_filter(array_map('trim', $parts));
$suffix = '';
if ($parts > 2) {
$last = array_pop($parts);
$suffix = ' et ' . $last;
}
return implode(', ', $parts) . $suffix;
}
To use the custom function xml for example if you have a field that is currently importing {/xpath} change it to [iwp_ticket_30354_change_delimiter("{/xpath}")]
When importing it will convert it to the following:
[iwp_ticket_30354_change_delimiter("A")] = A
[iwp_ticket_30354_change_delimiter("A,B")] = A et B
[iwp_ticket_30354_change_delimiter("A,B,C")] = A, B et C
...
Hopefully this is what you meant, i can remove the "A,b et C" and make it "A et B et C" if you prefer.
James
Hello,
Just tested and it's OK now i work as expected.
Thanks again
Regards