Macro for Checking if Web Part Zone is empty?

Bob Haring asked on November 26, 2015 12:47

Hi All,

Currently I have a template with multiple web part zones. What I'd like to do is set the visibility of web part zone to false if the web part zone is empty.

Is there a macro function that does this?

Thanks!

Recent Answers


David te Kloese answered on November 26, 2015 17:47

Hi Bob,

Not sure of it fits your scenario but a blog Ilesh Mistry wrote some time ago might point you in the right direction:

http://www.mmtdigital.co.uk/ilesh-mistry/blog/quick-kentico-tip-hide-webpart-if-empty

Greets,

David

0 votesVote for this answer Mark as a Correct answer

Bob Haring answered on November 27, 2015 16:23

Hi David,

Thanks for your reply, I have had a look at the example you provided but I can't seem to apply it to the web part zones. I'm guessing that the web part zone names/id's are not available for the macro.

Sincerely, Bob

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.