Phplm (Phplayersmenu based dropdown/tree menu)

Summary:Phplm (Phplayersmenu based dropdown/tree menu)
Version: 2.4.1-20230213
Prerequisites: PmWiki 2.2.122+, PHP 5.6.40+
Status:Active, Stable
Maintainer:VKrishn
Users: (View / Edit)
Discussion: Phplm-Talk

Questions answered by this recipe

  • Widget based dropdown menu that can be inserted on pages with little effort.

Phplm (Phplayersmenu based dropdown/tree menu)

Phplm-sample1(dropdown menu) - Phplm-sample2(tree menu) - Phplm-sample3(menu/tree from pagelist)

Description

  • Phplm (PhplayersMenu) is a powerful Menu system adapted to use with PmWiki (a simple yet powerful wiki engine).
    • This menu system uses "phplayersmenu-3.2.0rc3".
    • The menus uses javascript. This recipe allows javascript to be directly inserted in wikipage. When used it posses security risk similar to InfoBox Recipe.
    • This package should be tested first in local or intranet before use in production sites.
    • This recipe has been developed as a reusable widget for applications that could be build on top of PmWiki, needing menus.

Notes

Some of the potential uses:

  1. It can be used inside the wikipages.
  2. Site wide or group wide menus can be set.
  3. Page wise menus can be set.
  4. This menu system can also change its theme by changing a variable value.
  5. Pagelist or Multiple pagelist can be combined to produce a single menu/tree.

About Phplm

Some issues Phplm addresses:

  1. The menu pages are extremely simple to create.
  2. Easy and reusable simple widget.
  3. Simple syntax, multiple theme support.
  4. It can work along with Jscm.

Usage

Release notes

See also

Contributors

  1. Original Author of "PhplayersMenu": Marco Pratesi

Issues:

  • Please test this package at localhost or intranet to understand how it works.
    Leaving out menu pages and group (Content) unprotected from password could be risky.

Known Issues:
1. On Menu Wiki pages do not leave the first/last line blank before hitting save.
2. Menu Wiki pages do not support internal/inline format markups eg. '''example''' for bold.
3. This menu system might not work if the menupages are READ protected.

Bugs

Demo:

  • Please see links at the beginning of this page. see above

Requirements
Package/AppsMinimumLast test
Php5 >= 5.6.408.0.19+
PmWiki2.2.122+2.3.15
BrowserMost browsers built after 2014
with JavaScript support + CSS2+

Files/Download

Changelog

February 13, 2023
===================
phplm-2.4.1
--------------------------
 -- Code clean.
 -- Fixes for php 8.0.x.

January 15, 2023
===================
phplm-2.4.0
--------------------------
 -- Make compatible with php 7.2x.
 -- Make compatible with php 8.0.x.

December 23, 2018
===================
phplm-2.3.4
--------------------------
 -- Add better span.text custom formating in nodelinks
 -- Add original layerstreemenu.css file
 -- Add class '.phplmnormal span.text'.
 -- Fix use of $pagename in MarkupToHTML call.
 -- Fix php7 issue with variable $$phpmenuTheme in themes.

June 12, 2014
===================
phplm-2.3.3
--------------------------
 -- Minor bug fixes.
 -- Code clean.

March 12, 2014
===================
phplm-2.3.2
--------------------------
 -- Make compatible with php 5.5x.
 -- Add option clickopen=1 for menus.
 -- Add z-index for layersmenus.
 -- Minor bug fix.
 -- Code clean.
 -- Updated documentation.

February 15, 2013
===================
phplm-2.3.1
 -- Minor themes css fix.

February 12, 2013
===================
phplm-2.3.0
 -- Minor bug fix.
 -- Code clean.

February 10, 2013
===================
phplm-2.3.0-beta-3
 -- Updated samplemenus.txt.
 -- Minor fix in menu from pagelist.
 -- Bug fix for phplmScriptUrl.
 -- Minor fix for tree from multiple pagelist.
 -- Add various layouts for treemenu, including compact UL/LI output.
 -- Add argument option type=2|3|4|5|6|7.
 -- Updated defaultmenu.
 -- Updated documentation.

January 04, 2013
===================
phplm-2.3.0-beta-2
 -- PHPLM Feature: allow custom folder icon in treemenu.
 -- PHPLM Improve: Single treemenu toggle js code per theme.
 -- Allow PageVars including $phplmRequestUrl, $phplmScriptUrl during menubuilding.
 -- Move javascripts to footer.
 -- Code clean.

September 16, 2012
===================
phplm-2.3.0-beta-1
 -- Deprecated ereg fix for php 5.3+.
 -- Added ability to use menu in sidebar(workaround).
 -- Updated documentation.
 -- Code clean.

May 04, 2010
===================
phplm-2.2.4
 -- Added menu/tree from pagelist.
 -- Added ability for other recipes to use phplm by setting text menu.
 -- Change in themes.php for setting a theme.
 -- Minor bug fixes.
 -- Code clean.

April 16, 2010
===================
phplm-2.2.3
 -- Code clean.
 -- Updated documentation.

February 10, 2010
===================
phplm-2.2.2
 -- Added Menu pages can now have sections. eg. page#sectionA
 -- Code clean.
 -- Fixed setting orient and corresponding themes.
 -- Updated local/ samples config files.
 -- Updated defaultmenu.txt

December 17, 2009
===================
phplm-2.2.1
 -- Enabled/added tree-menu from phplayermenu.
 -- Code clean.

November 23, 2009
===================
phplm-2.2.0
 -- Rename module to Phplm
 -- Merge <!--HeaderText--> and $phplmHeader.
 -- Merge <!-- file : $lmInstallDir/menuheader.php --> $hormenuFmt (notebook2 skin format)
 -- Convert layersmenu into a wikipage(PageMenu).
 -- Complete re-write of module to use HTMLHeaderFmt and HTMLFooterFmt.
 -- Module loads only when directive present on page.

September 29, 2007
===================
phpmenu-2.0.14
 -- Code cleanup.

August 12, 2005
=================
phpmenu-2.0.13
 -- Used $HTMLHeaderFmt['phpmenu'] instead of $HTMLHeaderFmt[].

May 5, 2005
=================
phpmenu-2.0.12
 -- Made PhpMenu recipe $SkinDir independent.
 -- Code refinement.
 -- Code clean.

phpmenu-2.0.11
 -- Cleaned code.

phpmenu-2.0.10 (internal release)
 -- Improved code logic.

phpmenu-2.0.9
 -- Code Clean.

phpmenu-2.0.8
 -- Refined code logic to use FmtPageName.
 -- Changed menu directory to phpmenu.

phpmenu-2.0.7
 -- Refined code logic to use FmtPageName.

phpmenu-2.0.6
 -- Refined security and code logic.
 -- Minor css changes.

phpmenu-2.0.5
 -- Refined security and code logic.

phpmenu-2.0.4
 -- Added security code.

phpmenu-2.0.3

phpmenu-2.0.2

phpmenu-2.0.1
 -- Initial release.

Author

  • V.Krishn

Comments

This space is for User-contributed commentary and notes. Please include your name and a date (eg 2007-05-19) along with your comment. Optional alternative: create a new page with a name like "ThisRecipe-Talk" (e.g. PmCalendar-Talk).

See discussion at Phplm-Talk

User notes : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.