Structured menu

Downloads: 1458
Category: Plugin
Compatible with: GetSimple 3.0 - 3.2.3

Last Updated: October 27, 2013
Tags: menu structured hirarchical sub-menu submenu child parent
Author: hofl
Author Website: http://www.hofrichter.net/getsimple

(0) 0 Votes

Plugin Description:

Structured Menu is a GetSimple-plugin, that translates the flat menustructure of the GetSimple-standard-menu into a structured one. The plugin is an hybrid, to speed up its performance in the render-phase.

The part, that implements the hookin-action is designed to speed up the component-output while the render-phase. It reads the build-in menu-structure to bring it up into a parent-children-structure. The plugin-logic translates the one-dimensional array into a n-dimensional array (n = maximum menu-depth). The configuration is cached as a json-object.

The function-part is the logic, that you (the template-designer/-developer) use to inject the menu into your page. You can choose between two kinds of data-output and three kinds of filtering. Use "getstructuredmenu(...)", if the html-output of this plugin is good enough to work with or choose "getstructuredmenu_array(...)" to use the prepared menu-structure (a php-array) to implement your own html-output.

The more detailed plugin description can be found here: (http://www.hofrichter.net/getsimple).

The ZIP contains the plugin as a single PHP-file and its documentation as a single HTML-file as well. Feel free to use and/or play with it ;-D

Install Instructions:

  1. Unzip the archive into your plugins folder
  2. Activate the plugin in the administration area
  3. use the functions getstructuredmenu(...) and/or getstructuredmenu_array(...) as shown in this tutorial

Archived Versions:

These are old versions of this file. Please use with caution as they are probably out of date and no longer supported. ShowHide