November Happy Hour will be moved to Thursday December 5th.

Is it possible to write client side or server side code in editor mode

Vote:
 

Hello,

Many other CMS tools offer coding in edit mode for both client side and server side without having to go into the backend and build the project.

Is it possible to write client side or server side code in admin / editor mode in EPiServer?

Thank you.

#87050
Jun 09, 2014 13:31
Vote:
 

For server side code you can add plugins and/or hook up events where your code writes or changes runnable files (ASPX/ASCX) to paths inside the webapp.

This is very uncommon and depending on how you set it up could be very dangerous and cause frustration when deploying new code.

For javascript you can just add content type string properties that you edit through a plain textarea in Edit mode, this is quite common and typically used for stuff such as campaign tracking and banner ad scripts etc.

It's also common to add a Dynamic content plugin with a textarea that allows any type of ugly client side code (typically embeddable widgets or video etc).

#87057
Jun 09, 2014 14:28
Vote:
 

Thanks for the reply, it helped me a lot!

Then it feels like Javascript is absolutely okay to code in a textarea in Edit mode in my situation, I need to do a small validation of a field and have very limited access to the backend.

While server-side code should be left to be done in the backend

#87099
Jun 10, 2014 8:55
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.