Installation and deployment Questions on installation, system configuration and deployment to the live server.
Version 6.x > Installation and deployment > Macro not working in v6 View modes: 
User avatar
Member
Member
Daz - 12/20/2012 8:43:13 AM
   
Macro not working in v6
We have a macro which worked on v5.5 but doesn't seem to work on v6:
{%portalcontext.viewmode|(equals)Edit%}

Has anything changed with v6 to make this not now function?

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 1/2/2013 1:03:15 AM
   
RE:Macro not working in v6
Hi,

Could you please try the following macro:
{% PortalContext.ViewMode == "Edit" %}

I hope this will help you.

Best regards,
Martin Danko