GithubHelp home page GithubHelp logo

rpc5102 / drupal-collapsing_book_navigation Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 236 KB

Converts standard Drupal book navigation to a collapsable JS tree.

CSS 8.61% JavaScript 20.25% PHP 54.70% Twig 16.44%
navigation menu drupal-9-module

drupal-collapsing_book_navigation's Introduction

Collapsing Book Navigation 9.x-1.1

About this Module

Converts the standard page-rendered Book Navigation block into a fully collapsible tree menu.

Goals

Provide users with a method to easily traverse large/complex book structures.

Installation

  • Option 1. Using Drush $ drush en collapsing_book_navigation

  • Option 2. Manual Install

    • Download and place this module inside your Drupal /modules folder.
    • Enable the module in admin/modules.

Usage

Enable this block in:

  • Admin > Structure > Block layout > [Block Region] > (Place block) > Book Navigation - Collapsible.

The default [Block Region] in Bartik is sidebar_first.

Additional Features

This module also supports the ability to create one or many block regions for books as well as filter out the books to be displayed in each region. Configure block to see a new Book Selection list.

drupal-collapsing_book_navigation's People

Contributors

rpc5102 avatar

Stargazers

 avatar

Watchers

 avatar

drupal-collapsing_book_navigation's Issues

Not working

Hi,
Cannot get this module working! When I install the module and enable the block I get:

collapse.js?v=9.2.8:33 Uncaught TypeError: Cannot read properties of null (reading 'querySelector')
at expandActiveMenu (collapse.js?v=9.2.8:33)
at collapse.js?v=9.2.8:12

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.