Timeline for Views returns 'All taxonomy terms' in alphabetically order; can I change to Parent > child
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 30, 2014 at 6:32 | comment | added | Deejay | No worries, thanks Darktek you've helped me enough to find an answer :) . I've managed to work out an SQL query that returns what I need. I'll post an answer when tested. Thanks again . | |
Oct 30, 2014 at 1:59 | comment | added | DarkteK | I can't help you more from here, I really would like to help you, but I don't know how ... sorry man | |
Oct 29, 2014 at 17:50 | comment | added | Deejay | Hi DarteK; Thanks for the reply. I follow this but at the point that i have $row->term_node_tid - which would be 'England, London, Victoria' I am unsure what PHP would be able to put that into Parent > Child order. Or does this return data I do not know about. Many thanks. | |
Oct 28, 2014 at 19:20 | comment | added | DarkteK | If you are using module: "Views PHP", just : 1. Add field 'All taxonomy terms' then "Exclude" from ur view 2. Add a "Global: PHP" field, just under the previous one 3. Edit that PHP Field with -> 'Value code' for this will be 'echo "1";' 4. Then the output code (You can check the variables avaliable for this). Once you choose your variable, for example ($row->field_areas_of_activity)just use PHP and order them with asort() Let me know if you can follow this | |
Oct 28, 2014 at 9:00 | comment | added | Deejay | Hi DarkteK I've tried with relationshiop 'Content: Taxonomy terms on node' > with my Vocabulary. And then in sort criteria 'Taxonomy term:Weight' . However this will attempt to order the results like this. not the output of the 'All taxonomy terms' field . My feeling is that it'll need to be a module that sorts this. | |
Oct 27, 2014 at 13:50 | history | answered | DarkteK | CC BY-SA 3.0 |