Installation and deployment Questions on installation, system configuration and deployment to the live server.
Version 5.x > Installation and deployment > Setting visibility of a web part over many different pages. View modes: 
User avatar
Member
Member
jfdesign-gmail - 3/7/2013 3:18:23 PM
   
Setting visibility of a web part over many different pages.
I found this for setting two.
{%if (DocumentName == "Home") { "true" } else { if (DocumentName == "New") { "true" } else { "false" } }%}

Theres a lot of code for just setting two and I'm a little confused on say if I needed to setup 5 pages. Can someone provided me with a little more elaborated example of what that might look like so I can see the pattern?

Thanks

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 3/7/2013 7:23:19 PM
   
RE:Setting visibility of a web part over many different pages.
Hi,

In the versions 5.x you will need to create a custom macro that will check more items. In newer versions, there is the option to use K# syntax in the macro and create more complex macro expressions.

Best regards,
Juraj Ondrus