[xwiki-users] Check for edit mode to exclude velocity macro?
23 May
2012
23 May
'12
1:56 p.m.
Hi i dont want to show a specific velocity macro when in edit mode. How should i check for edit mode on page?
24 May
24 May
9 a.m.
Hi mohit,
i dont want to show a specific velocity macro when in edit mode. How should i check for edit mode on page?
try the following sniplet. #if($context.action == 'edit') {{velocity_macro/}} ## do something only when in edit mode #else ## do something only when not in edit mode #end More information on http://extensions.xwiki.org/xwiki/bin/view/Extension/Sheet+Module#HActionshe ets Bests, Moritz
5124
Age (days ago)
5125
Last active (days ago)
1 comments
2 participants
participants (2)
-
mohit gupta -
Moritz Hesse (EA GmbH)