GithubHelp home page GithubHelp logo

lutece-cms-plugin-menus's Introduction

#Plugin menus

##Introduction

This plugin allows to display the menu of the pages of the site

It is possible to display :

  • a main menu to access to the pages of one specific level. The first level of menu is displayed by default as main menu
  • a full menu in tree form to access to the pages of the site whatever the level

It is possible to display these different menus in the pages of the site by adding specific markers in the page template page_frameset.html

These markers are the following :

  • ${page_tree_menu_main} : allow to display the menu of pages of one specific level. By default the first level is displayed
  • ${page_tree_menu_tree} : allow to display the menu of child pages of the current page
  • ${page_tree_menu_tree_all_pages} : allow to display the full menu in tree form

This plugin provides a REST service allowing to get the full menu of the site in tree form in JSON format. In the response, each menu item contain page informations with especially the URL to access to the page

##Configuration

The menus display is configurable from parameters of the plugin file properties

The main parameters are the following :

  • menus.mainTreeMenu.depth.main : defines the level of pages displayed through the marker ${page_tree_menu_main}
  • menus.mainTreeMenu.depth.tree : defines the level of the current page to display the menu of child pages through the marker ${page_tree_menu_tre}
  • menus.mainTreeMenu.depth.tree.allpages : defines the number of level to display when displaying the full menu through the marker ${page_tree_menu_tree_all_pages}

##Usage

URL to access to the REST service allowing to get the full menu in JSON format : ${base_url}/rest/menus/tree_menu_pages

Maven documentation and reports

generated by xdoc2md - do not edit directly.

lutece-cms-plugin-menus's People

Contributors

isabelle-lenain avatar v-v- avatar pierrelevy avatar l-lin avatar francoisericmerlin avatar fcoue avatar hohll avatar jgoulley avatar rzara avatar elysajouve avatar

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.