Overview
A module that provides a tree-view Chart. It can use different content types for its items that can be selected through the admin interface.
Examples, how to use this module
- You may create a company personnel diagram/chart
- List of stores regionally
- Maybe a multi level tree-view FAQ
Details
- The Chart is viewable through "node/%nid/chart" as a tab or stand alone on "chart/%nid"
- 100% AJAX based
- Expandable through hooks
- Somewhat fast (scientifically speaking...)
You need to do
- Go to "admin/config/content/smart-suite/chart" and add content types that you want as items
- Enable at least jQuery 1.7 with jQuery Update module
API
There are hooks to change everything that I have thought of. I am open to suggestions.
Check smart_chart.api.php.
Change what is shown in the item
Only the titles of the nodes are shown in the items. No links to node view display, no body, no entities, no other fields. But you can easily change what is shown, using the Smart Chart API. For example you can make the title link to node page.
/**
* Implements hook_sc_item_alter().
*/
function mymodule_sc_item_alter(&$form_item, $context) {
// Get item nid.
$item_nid = $context['item_nid'];
// Get title.
$sci_title = $form_item['content']['#markup'];
// Get path.
$alias = drupal_get_path_alias('node/' . $item_nid);
// Change path.
$form_item['content']['#markup'] = l($sci_title, $alias);
}
Requirements
Entity reference
ctools
Views
jQuery Update
Taxonomy Machine Name
Modal forms (with ctools) (Maybe I 'll remove this requirement in the future)
Node
Known problems
I try to fix bugs as I discover them.
Credits & FYI
Developed by Thanos Nokas
Sponsored by Human Factor
This module is part an HR application and I commit to keep it running for the next 3-5 years or more. And in the not so distant future there will be a Drupal 8 version.
Project information
- Module categories: Content Editing Experience, Content Display
- Created by matrixlord on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Development version: 7.x-1.x-dev updated 6 Jul 2016 at 20:22 UTC