ExpandingMenu-Talk

Summary: Talk page for ExpandingMenu.
Maintainer: dstebila
Users: (View? / Edit)

This space is for User-contributed commentary and notes. Please include your name and a date along with your comment.

Not to be confused with ExpandingMenus-Talk.

Comments

preg_replace

It seems this recipe needs to updated for PHP 5.5 (preg_replace...) /Johan Bengtsson, 2018-02-27

PHP5.5 Compatibility Issue

M. Denning, 20170729: Ruleset is throwing the following compatibility error. Please, can this be addressed ASAP? Base site is battzion.org and WebMaster contact is at the bottom. Thanks!

emenu    <links   B>>>>><  ! file: /cookbook/emenu.php, line: 56, pat: /^\(:(emenu|emenuend)\s?:\)/e
^*E      >emenu   B>>>>><> ! file: /cookbook/emenu.php, line: 57, pat: /^(\*+)(.*)/e

PHP5.5 Compatibility Issue

M. Denning, 20170731: Ruleset is throwing the following compatibility error. Please, can this be addressed ASAP? Base site is battzion.org and WebMaster contact is at the bottom. Thanks!

emenu  <links  B>>>>><   ! file: /cookbook/emenu.php, line: 56, pat: /^\(:(emenu|emenuend)\s?:\)/e
^*E    >emenu  B>>>>><>  ! file: /cookbook/emenu.php, line: 57, pat: /^(\*+)(.*)/e
Update: I have updated lines 56 and 57
FROM056: Markup('emenu','<links','/^\\(:(emenu|emenuend)\\s?:\\)/e', "BuildEMenu('$1')");
TO056: Markup_e('emenu','<links','/^\\(:(emenu|emenuend)\\s?:\\)/', "BuildEMenu(\$m[1])");
FROM057: Markup('^*E','>emenu','/^(\\*+)(.*)/e', "BuildEItem('$1',PSS('$2'))");
TO057: Markup_e('^*E','>emenu','/^(\\*+)(.*)/', "BuildEItem(\$m[1],PSS(\$m[2]))");
TakeAway:This seems to have taken away the error generated in Rule Table.
AfterThought:However, I would still be more comfortable if I obtained positive word from the other developers that this was the only updated necessary.

Inspired by Cookbook-V1.Trail2Menu and based on TrackingMenu by mikei.

I wish, someone would create a new type of menu, combining the advantages of TrailMenu and ExpandingMenu. As TrailMenu builds its list of menu items from a WikiTrail, no external urls or using headings is allowed. TrailMenu has the disadvantage of relying on building its menu items from WikiGroups - why should one have to create Groups only to be able to use them in a menu. Now a perfect menu would be called with a directive like Expanding Menu and thus still be able to build its item list from a simple unordererd list like TrailMenu, but not relying on the disadvantages of a WikiTrail.

JK 2007-05-25

Hi - Is there a way to get emenu to work with hg subgroups? That is if the menu opens for the group Kingdom,it will also open for the (sub)group Kingdom-Fish and the (sub,sub)group Kingdom-Fish-Tuna? Thanks! LFS 14.June.2007

Talk page for the ExpandingMenu recipe (users?).