Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Displaying content based on Custom Table Values View modes: 
User avatar
Member
Member
egarrison-wte - 7/7/2012 3:27:53 PM
   
Displaying content based on Custom Table Values
I am successfully pulling content from a Custom Table based on a CustomData Datasource. Now I need to display or hide StaticHTML blocks based on values returned from CustomTable. Basically, If I have Male or Female data coming from the CustomTable, I only want to display the Male Block to the Males and Female Block to Females. I still want a content person to be able to edit the HTML text when needed.

Does anyone have an idea of the best way to do this?


User avatar
Kentico Support
Kentico Support
kentico_radekm2 - 7/13/2012 4:44:08 AM
   
RE:Displaying content based on Custom Table Values
Hello.

I would recommend using custom macro for this purpose. You can call custom macro in the Visible property and evaluate any content logic, like gender of the current user. According to this, you can decide whether to hide or show given web part.

Best Regards,
Radek Macalik

User avatar
Member
Member
egarrison-wte - 7/13/2012 10:07:52 AM
   
RE:Displaying content based on Custom Table Values
Thanks. I think what I am going to do is use the custom query webpart, then join to a new doc type and pull the HTML from it. This way if I need to do more selection, I will have the flexibility. I will try both and post back my results.