Difference: MySideBar (r2 vs. r1)

Create a personalized sidebar navigation

The sidebar topic already exists.
Do you want to delete the old sidebar and then create a new one?
%STARTSECTION{"checkexists"}%
%IF{"istopic '%TMPL:P{"thesidebar"}%'"
   then="$percntINCLUDE{\"%BASEWEB%.%BASETOPIC%\" section=\"deletesidebarform\"}$percnt"
   else="$percntINCLUDE{\"%BASEWEB%.%BASETOPIC%\" section=\"newsidebarform\"}$percnt"
}%
%ENDSECTION{"checkexists"}%

%STARTSECTION{"deletesidebarform"}%
The sidebar topic %TMPL:P{"thesidebar"}% already exists.
%MAKETEXT{"Do you want to *delete* the old sidebar and then creating a new one?"}%
%BUTTON{"%MAKETEXT{"Yes, delete"}%" type="save" icon="bin"}% %BUTTON{"%MAKETEXT{"No, thanks"}%" icon="cross" target="%TMPL:P{"thesidebar"}%"}% %CLEAR%
%ENDSECTION{"deletesidebarform"}% %STARTSECTION{"newsidebarform"}%

Select a sidebar template:

%SEARCH{".*SideBarTemplate" scope="topic" type="regex" nonoise="on" format="
" }%
%BUTTON{"%MAKETEXT{"Save"}%" icon="disk" type="save"}% %CLEAR%
%JQREQUIRE{"validate"}% %ADDTOZONE{ "body" id="sidebarform" text="" requires="JQUERYPLUGIN::VALIDATE" }% %ENDSECTION{"newsidebarform"}% %TMPL:DEF{PROMPT:mysidebarbookmark}% %BUTTON{ "%MAKETEXT{"Add to sidebar"}%" icon="add" class="jqButtonSimple" type="submit" style="width:99%" title="%MAKETEXT{"Add the topic %BASETOPIC% to my sidebar navigation"}%" }% %CLEAR% %TMPL:END% %TMPL:DEF{OUTPUT:mysidebarbookmark}% * [[%URLPARAM{"bookmark_web"}%.%URLPARAM{"bookmark_topic"}%][%URLPARAM{"bookmark_topic"}%]]%POS:BOTTOM% %TMPL:END% %STARTSECTION{"success"}% ---+ Create a personalized sidebar navigation
You successfully created your sidebar at %TMPL:P{"thesidebar"}%.
%ENDSECTION{"success"}%

View topic | View difference side by side | History: r4 < r3 < r2 < r1 | More topic actions
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback