Cookbook /
Jscm (JsCookMenu based dropdown menu)
Summary:Jscm (JsCookMenu based dropdown menu)
Version: 2.4.3-20241027
Prerequisites: PmWiki 2.2.122+, PHP 5.6.40+
Status: Active/Stable
Maintainer: VKrishn
Discussion: Jscm-Talk
Questions answered by this recipe
- Widget based dropdown menu that can be inserted on pages with little effort.
Jscm (JsCookMenu based dropdown menu)
Jscm-sample1 - Jscm-sample2 - Jscm-sample3(From page wiki links) - Jscm-sample4(From Pagelist) - Jscm-menubuilder
Description
- Jscm is a powerful Menu system adapted to use with PmWiki.
- This menu system uses "JsCookMenu".
- The menus uses javascript. This recipe allows javascript to be directly inserted in wikipage (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 simple widget for applications that could be build on top of PmWiki, needing menus.
Notes
Some of the potential uses:
- It can be used inside the wikipages.
- Site wide or group wide menus can be set.
- Page wise menus can be set.
- Menupages can be easily created (using web based menu creater) and uploaded.
- This menu system can also change its theme by changing a variable value.
About Jscm
Some issues Jscm addresses:
- Easy and reusable simple widget.
- Simple syntax.
Release notes
See also
Contributors
- Original Author of "JsCookMenu": Heng Yuan
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.
Demo:
- Please see links at the beginning of this page. see above
| Requirements | ||
| Package/Apps | Minimum | Last test |
|---|---|---|
| Php | 5 >= 5.6.40 | 8.1.6+ |
| PmWiki | 2.2.122+ | 2.3.37 |
| Browser | Most browsers built after 2014 with JavaScript support + CSS2+ | |
Files/Download
Changelog
October 27, 2024
===================
Jscm version 2.4.3
------------------------
-- Better DefaultGroup/DefaultName.
October 22, 2024
===================
Jscm version 2.4.2
------------------------
-- Fix null error in php81.
-- Use $thisScriptDUrlPath to load defaultmenu.
-- Add defaults to $args.
-- Undo @suppression, isset.
-- Refactor set_args_map, check for less args.
-- Add JscmSource to fix broswer header complain.
February 12, 2023
===================
Jscm version 2.4.1
------------------------
-- Added jscmDraw option format=pmwiki
-- Renamed jscookmenu.php to jscm.php
-- Moved defaultmenu.js to /js
-- Minor bug fixes.
-- Updated documentation.
January 13, 2023
===================
Jscm version 2.4.0
------------------------
-- Make compatible with php 7.2x
-- Make compatible with php 8.0.x
March 10, 2014
===================
Jscm version 2.3.0
--------------------------
-- Make compatible with php 5.5x.
-- Add option effect=fading|sliding
-- Add option clickopen=1
-- Add option delay=<num>
-- Add web browser based menubuilder(directive option)
-- Fix ThemeInfoClick and ThemeGray.
-- Minor bug fix.
-- Code clean.
-- Updated documentation.
November 07, 2012
===================
Jscm version 2.2.2
--------------------------
-- Updated menubuilder.
-- Updated themes.
-- Updated local/ sample config files.
-- Minor bug fix.
-- Minimized js.
-- Code clean.
October 5, 2009
===================
Jscm version 2.2.1
--------------------------
-- Added minified js.
-- Shows default menu if no arguments are given.
-- Updated themes
-- Corrected MenuPage length in password code.
September 14, 2009
===================
Jscm version 2.2.0
--------------------------
-- Complete rewrite.
-- Module loads only when directive present on page.
February 05, 2006
===================
CookMenu version 2.0.16
--------------------------
-- Added theme "ThemeInfoClick".
October 16, 2005
===================
CookMenu version 2.0.15
--------------------------
-- Minor bug crept from changing the install folder name
now fixed by $thisDir = 'cookmenu';
-- Minor clean up.
October 2, 2005
===================
CookMenu version 2.0.14
--------------------------
-- Upgraded to use jscookmenu v1.4.3.
-- Minor clean up.
September 13, 2005
===================
CookMenu version 2.0.13
--------------------------
-- Added more values in version.php
-- Fixed minor bug for loading local menu file.
-- Fixed minor bug in sanity check.
September 7, 2005
===================
CookMenu version 2.0.12
--------------------------
-- Fixed minor bug with farm installation.
September 6, 2005
===================
CookMenu version 2.0.11
--------------------------
-- Changed the version.php file format.
-- Code clean.
August 26, 2005
===================
CookMenu version 2.0.10
--------------------------
-- Changed default cmContainer to cmMainID
-- Changed default menu name from cmMenu to cmMainMenu.
-- Bug fix $cmpagenameUrlFmt.
-- Code clean.
August 25, 2005
===================
CookMenu version 2.0.9
--------------------------
-- Code clean.
August 23, 2005
===================
CookMenu version 2.0.8
--------------------------
-- Improved farm/field logic.
-- Added facility for uploaded menu files.
-- Forked this recipe as cookmenupro.
-- Code clean.
August 22, 2005
===================
CookMenu version 2.0.7
-----------------------
-- Added a new theme cmThemeMini.
-- Added wikipage wise menus.
-- Added syntax for menuDraw with params.
Now any menu can be called giving its own theme.
August 21, 2005
===================
CookMenu version 2.0.6
-----------------------
-- Complete rewrite.
August 16, 2005
===================
CookMenu version 2.0.5
-----------------------
-- Upgraded to use jsCookMenu.js v1.4.2
-- Removed extra comment lines from jsCookMenu.js
-- added name value to arrays eg.$HTMLHeaderFmt['cookmenu']
-- Moved all themes under /themes directory.
April 29, 2005
===================
CookMenu version 2.0.4
-----------------------
-- Code Clean
April 29, 2005
===================
CookMenu version 2.0.3
-----------------------
-- Added markup for display of menu in wikipage.
April 29, 2005
===================
CookMenu version 2.0.2
-----------------------
-- Code Clean
April 28, 2005
===================
CookMenu version 2.0.0
-----------------------
-- Version jump to coincide with PmWiki version 2.
April 28, 2005
===================
CookMenu version 1.0.0
-----------------------
-- Initial release.
Author
- V.Krishn
Comments
See discussion at Jscm-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.