Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Macros - Trying to do the opposite of what I am doing using (not) View modes: 
User avatar
Member
Member
stradle - 10/3/2012 10:48:05 AM
   
Macros - Trying to do the opposite of what I am doing using (not)
I am creating a macro that I am putting on the visible property of a web part.
So I am wanting to show the web part on every page unless the DocumentNamePath contains the word "Shop"

So far I have :

{%Contains(cmscontext.currentdocument.DocumentNamePath, "Shop")%}

This works on every page which DOES contain shop, but I am looking to switch it around from this point so what I achieve is everything that DOESNT.

Kentico has a "notequal" property, but I cannot limit it to an exact DocumentNamePath which is why I am using "contain" instead.
Kentico also has a "(not)" property which I could maybe use, but cannot see how this is used.

Anyone know how to achieve this?

User avatar
Member
Member
stradle - 10/3/2012 11:01:41 AM
   
RE:Macros - Trying to do the opposite of what I am doing using (not)
Got it, for anyone else who wants it:

{%not(cmscontext.currentdocument.DocumentNamePath.Contains("Shop"))%}