I need to find a way to generate a csv export of a view such that a multi-term taxonomy field is developed into the generated csv as a single term in multiple columns.
I realise that developing a taxonomy in this way would generate a varying number of columns per row, but as long as the taxonomy is the last field in the view, this will not be a problem.
I've tried to intercept the relevant field at templating time in views-view-field.tpl.php (or specific equivalent for the taxonomy field in question) to see if it is possible to modify the output from "term1, term2" into "term1", "term2", but this doesn't work. I still get a single cell output with the modified contents.
I am now thinking it is not possible. Has anyone any other suggestions?
Cheers
Mike
Comments
Comment #1
Abelito CreditAttribution: Abelito commented@peamik123, did you ever find a solution to this?
I'm looking for the same feature.
Cheers
Comment #2
Abelito CreditAttribution: Abelito commentedOk, I came up with a solution that works for me because I dont need more than a few fields with terms.
1. add the views_customfield module.
2. in views add a new field of type Customfield: PHP code. (this will be your first term) put in this code:
3. add another Customfield:PHP code field. and enter this code:
4. continue as desired.
Comment #3
Abelito CreditAttribution: Abelito commentedFYI: Here is a way you can do it and limit the depth of the terms returned:
Comment #4
neclimdul