I am trying to produce an OrgChart with Views of one of my taxonomy vocabularies.
The question: is OrgChart supported to be used through Views? I haven't found much in the documentation.
I added 2 fields, the "term name" and the "parent-term name" (both aggregated - grouped). The result is some kind of chart, representing just the first term, two times.
From the attempts I have made, it looks like the table is somehow "transposed", so that I would need to invert "columns" and "rows", if it makes any sense (I am not a programmer at all).
It would be great to be able to get it to work... it's very promising!
Comments
Comment #1
konforti commentedWell, actually there is no support for orgChart with views at this time.
But I really like the idea of using the taxonomy hierarchy for building the data structure, and display it through views.
I will look in to it, and try to figure it out.
If you got further helpful information or ideas please share.
Thanks.
Comment #2
inno81 commentedUnfortunately, I don't know enough to be helpful, but I can give you a couple of links to modules that do something similar.
The first a module to display taxonomy hierarchy trees with views:
http://drupal.org/project/views_tree
and the second is a thread where some code is posted to do orgcharts/views integrations, but I never got around to understand how to use it:
http://drupal.org/node/548854
I hope it helps.
Comment #3
konforti commentedThanks for the links, I will test them.
I already pushed an Organizational Chart views support to the DEV branch.
http://drupalcode.org/project/google_chart_tools.git/commitdiff/43e8951d...
It will be great if you can give a try.
I added some instructions here:
http://drupalcode.org/project/google_chart_tools.git/blob/refs/heads/7.x...
Comment #4
inno81 commentedIt works! The result is very good! Instructions are very clear as well.
The only issue so far: the layout is not very clean: light blue lines extends beyond the cell area. Image attached.
In this example, I only used the first three mandatory fields.
Great work, and fast too!
Comment #5
konforti commentedAdded some styling to fix #4 issue.
http://drupalcode.org/project/google_chart_tools.git/commitdiff/976372be...
Release 7.x-1.1 contains the new Views support to Organizational Chart.
Thanks!
Comment #6
inno81 commentedThe fix works!
I have another request: to enable nodes names to be linked to their content in the orgchart, the "allowHtml" tag should be set to TRUE, but I cannot find how to do it. Would it be dangerous to leave it true by default, or is it possible to have a switch somewhere?
Thanks again.
Comment #7
konforti commentedI don't see a problem to set the allowHtml always to true.
Pused to DEV.
http://drupalcode.org/project/google_chart_tools.git/commitdiff/a4ddc471...
If there a problem and there need to turn it off, we can use hook_draw_chart_alter() to do that.
We can also add checkbox in the views format setting form to turn it off/on.