Skip to content

Commit

Permalink
Item1208: add edit link to menu's
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk/YuiMenuContrib@2888 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
SvenDowideit authored and SvenDowideit committed Mar 6, 2009
1 parent c592f44 commit 11d2da8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions data/System/YuiMenuContrib.txt
Expand Up @@ -83,7 +83,7 @@ fall back to the default in this topic
SUBMENUWEB=$quot$pattern(\|\s*[^\|]*\s*\|\s*[^\|]*\s*\|\s*[^\|\s]*\s*\|\s*([^\|\s]*)\.[^.]*\s*\|.*)$quot
SUBMENUTOPIC=$quot$pattern(\|\s*[^\|]*\s*\|\s*[^\|]*\s*\|\s*[^\|\s]*\s*\|\s*[^.]*\.([^\|\s]*)\s*\|.*)$quot
}$percnt"
}%
}% %IF{"'%MENUWEB%.%MENUTOPIC%' allows 'EDIT'" then="<li>[[%MENUWEB%.%MENUTOPIC%][edit menu]]</li>"}%
</ul>%ENDSECTION{"webmenu-builder"}%

%STARTSECTION{"element"}%<li>[[%MENUTOPIC%][%MENULABEL%]]</li>%ENDSECTION{"element"}%
Expand All @@ -97,7 +97,7 @@ fall back to the default in this topic
</li>%ENDSECTION{"submenu"}%

****TOTO: this should use the SYSTEM web one we distribute unless the MAINWEB one exists.
%STARTSECTION{"webmenu-builder-default"}%<ul> SVSV
%STARTSECTION{"webmenu-builder-default"}%<ul>
%SEARCH{
"^\|.*\|$"
web="%MAINWEB%"
Expand All @@ -116,7 +116,7 @@ fall back to the default in this topic
SUBMENUWEB=$quot$pattern(\|\s*[^\|]*\s*\|\s*[^\|]*\s*\|\s*[^\|\s]*\s*\|\s*([^\|\s]*)\.[^.]*\s*\|.*)$quot
SUBMENUTOPIC=$quot$pattern(\|\s*[^\|]*\s*\|\s*[^\|]*\s*\|\s*[^\|\s]*\s*\|\s*[^.]*\.([^\|\s]*)\s*\|.*)$quot
}$percnt"
}%
}% %IF{"'%MAINWEB%.DefaultWebMenu' allows 'EDIT'" then="<li>[[%MAINWEB%.DefaultWebMenu][edit menu]]</li>"}%
</ul>%ENDSECTION{"webmenu-builder-default"}%
</verbatim>

Expand Down

0 comments on commit 11d2da8

Please sign in to comment.