Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > stop webparts from loading in CMS Desk? View modes: 
User avatar
Member
Member
rmclemore-millerheiman - 11/30/2012 6:55:55 PM
   
stop webparts from loading in CMS Desk?
I'm wondering if there is a way to stop a webpart from running in the cmsdesk while editing. I have a javascript webpart that I only want to run on the live site. It mucks things up if it runs in the editor.

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 11/30/2012 7:30:07 PM
   
RE:stop webparts from loading in CMS Desk?
Hello,

You can for example create a macro, which will hide the web part in all the modes except the live view mode. For example:

{%Cookies.cmsviewmode != "6"%}

User image

Best regards,
Boris Pocatko