Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Show/Hide Web parts if Data Source has rows View modes: 
User avatar
Member
Member
mark.rupp-sauder - 8/2/2013 8:16:22 AM
   
Show/Hide Web parts if Data Source has rows
I am trying to write a custom macro to show or hide web parts based on whether a data source has rows. How do I pass the data source name to the procedure and how do I determine whether data source has rows?

User avatar
Kentico Consulting
Kentico Consulting
Kentico_RichardS - 8/5/2013 1:01:45 AM
   
RE:Show/Hide Web parts if Data Source has rows
Hi Mark,

Unfortunately Im not sure if this is possible within macro's and for all webparts across the web. You would need to set the visibility option within the C# code for the webpart itself. If you want to do this for a particular webpart please tell us which one and we could try to set it up for that one.

Kind regards,
Richard Sustek