Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > select problem View modes: 
User avatar
Member
Member
pavel.1991-tut - 5/20/2013 6:58:06 AM
   
select problem
I'm using js plugin which change standard selects to my own. In CMS Desk there is the select of web-parts choose. My script change this select and it does not work any more. How to solve this problem?

User avatar
Member
Member
eagleag - 5/20/2013 7:42:14 AM
   
RE:select problem
you can wrap you select script with an "if in live site".
if(CMSContext.ViewMode == CMS.PortalEngine.ViewModeEnum.LiveSite)

that way script only run when on live site.

User avatar
Kentico Support
Kentico Support
kentico_radekm - 5/21/2013 3:38:40 AM
   
RE:select problem
Hello.

Do you mean you use some custom JS which replaces standard Web part toolbar, shown on the right side in CMSDesk, by some custom one? And this custom one does not work then? Thank you in advance for further clarification of the problem.

Best Regards,
Radek Macalik