Skip to content
Snippets Groups Projects
Forked from project / hierarchy_manager
60 commits behind the upstream repository.
user avatar
Mingsong Hu authored
21d42343
History

CONTENTS OF THIS FILE

  • Introduction
  • Requirements
  • Installation
  • Configuration
  • Maintainers

INTRODUCTION

Drupal provides a draggable table to manage the hierarchy of menu links and taxonomy terms. The Drupal draggable table is not able to present a massive hierarchy in one page.

This module provides a plugin mechanism to manage hierarchy for taxonomy terms, menu links and others. There are two out of box plugins, taxonomy hierarchy management plugin and menu hierarchy plugin. The front-end JavaScript libraries is also pluginable. The out of box display plugin using Francytree to render the hierarchy tree with filter. The hierarchy tree is draggable which means you can drag and drop a taxonomy term in the tree.

Other modules can define their own management plugin to manage hierarchy for any other entities or display plugin to render the hierarchy tree by other JavaScript libraries.

REQUIREMENTS

This module requires the following library:

  • Fancytree JS (This module will automatically load this library from romte CDN if it wasn't hosted locally under /libraries/jquery.fancytree/ folder)

INSTALLATION

  • Install as you would normally install a contributed Drupal module.

CONFIGURATION

  • Go the hierarchy manage display management page (/admin/structure/hm_display_profile) under the Structure menu to create a display profile

  • Go to the hierarchy management configuration page (/admin/config/user-interface/hierarchy_manager/config) to enable hierarchy management plugins, such as taxonomy plugin, and specify a display profile created in step above.

  • Once a hierarchy mange plugin is enabled, the related edit form should be replaced with a hierarchy tree form. For instance, the taxonomy term edit form (/admin/structure/taxonomy/manage/{tid}/overview) will be replaced with a hierarchy tree implemented by the taxonomy hierarchy manage plugin.

MAINTAINERS

Mingsong Hu (Mingsong) - https://www.drupal.org/u/mingsong