Swainy
-
8/29/2013 5:29:53 AM
Web Part Visible based on View Mode
Hi,
Is there a way to set a web part to only be visible for a certain view mode? I want to display the web part (editable text region), so that an admin person can add content into it, but I am using the API to put this text elsewhere on the site (it just acts as a placeholder for the admin user).
I want it to display inside CMSDesk but the content not display on the site.
I have tried using the following macro in the Visible condition but it doesn't seem to work. Any ideas?
{%CMSContext.ViewMode == ViewModeEnum.Edit%}
Thanks,
Matt
|