Site structure
Version 4.x > Site structure > Turning zones off based on location View modes: 
User avatar
Member
Member
roren - 12/3/2009 9:31:07 PM
   
Turning zones off based on location
I'm setting up a new site at the moment, with a (currently) pretty basic structure.

It is using one template which holds all of the structural elements. On this template there is a column of sideboxes, one of which contains contact information.

I would like this to show on every page EXCEPT for 'contact us' without having to create a new template. What is the easiest/most efficient way to achieve this?

I am using the web interface / v4.0



Thanks in advance,
Lauren

User avatar
Kentico Support
Kentico Support
kentico_radekm - 12/14/2009 9:03:25 AM
   
RE:Turning zones off based on location
Hello Lauren.

You can ensure it by a very simple way. Please go to CMSDesk -> Content -> Edit -> Design mode, open zone´s Properties and click little black trigon for "Visible" property.
Here you can use this macro expression: {%CurrentDocument.NodeAlias != "/<node alias>"%}. <node alias> you can find on document´s Properties ->General tab. This macro returns false if the document (node) alias path is <something>, so the visibility is set to false and the layout is hidden.

More info about macros you can see here: http://devnet.kentico.com/docs/4_1/devguide/index.html?appendix_a___macro_expressions.htm

Best Regards,
Radek Macalik
Support Engineer