Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Hide Content Subscription Web Part if Already subscribed View modes: 
User avatar
Member
Member
michael.mccready-norquest - 11/18/2013 5:05:58 PM
   
Hide Content Subscription Web Part if Already subscribed
Is there any way to hide the content subscription web part if the user has already subscribed to that item?

I wonder if there is any way to do a lookup to the dbo.Notifications_Subscription table and see if the user ID is there.

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 11/25/2013 10:20:38 AM
   
RE:Hide Content Subscription Web Part if Already subscribed
Hello Michael,

For this purpose I would recommend you to create a Custom macro where you will check if the user is already a subscriber, you can then simply return true/false and use this macro in the Visible condition of the Web Part.

Best regards,
Martin Danko