How to get a Web Part property value in page template
In one of our recent Kentico projects, we had two hide a Zone if one of its Static Html web parts were empty.
As fan of K#, I started to find a way to handling it by adding a macro to visible property of Zone.
Probably, I had to somehow check the web parts content, but how?
FIrst of all I checked to see what is the relevant field in Static …
How to hide container settings of a web part
Sometimes your webpart cannot be assigned to more than one container which should be selected by default to make sure that it will be displayed in a proper way.
In such a situation you may need to hide container settings of that specific web part so the editor wont be able to change it.
We were in exactly same situation on one of our …