Problem:
How to programmatically create an Org Chart. This would be based on Parent/Children CPTs.
Solution:
Toolset does not have any such feature to create an organizational chart, this will require pure custom coding apart from listing the parent/child posts. Below are some hints:
1. First you will need to create relationship between parent/child posts and set them as one-to-many relationships.
2. And then display the relational data on a page using Views, both these are explained here in detail:
https://toolset.com/documentation/beyond-the-basics/post-relationship-concepts/implementing-one-to-many-relationships/
3. After that you will need to style the relational data using pure html and css. Like its built here as examples (the sample code is also provided here):
https://codepen.io/danyadsmith/pen/yNpqav
https://bootsnipp.com/snippets/eN3Q8
Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 12:00 – 17:00 | 12:00 – 17:00 | 12:00 – 17:00 | 12:00 – 17:00 | 12:00 – 17:00 | - |
- | 18:00 – 21:00 | 18:00 – 21:00 | 18:00 – 21:00 | 18:00 – 21:00 | 18:00 – 21:00 | - |
Supporter timezone: Asia/Karachi (GMT+05:00)
This topic contains 2 replies, has 2 voices.
Last updated by 7 years, 1 month ago.
Assisted by: Noman.
The forum ‘Types Community Support’ is closed to new topics and replies.