ASPX templates
Version 5.x > ASPX templates > What is the recommended way to modify Kentico User Controls? View modes: 
User avatar
Member
Member
hotfrost-gmail - 1/19/2010 11:08:36 AM
   
What is the recommended way to modify Kentico User Controls?
Hi,

I need to modify TreeContextMenu user control provided by Kentico.
What would be the recommended way to do it, so i can import-export-update my Kentico installation later on?

I am reading some Kentico blog posts, and the way I see it I have to do the following:
- create a copy of TreeContextMenu user control
- register my control with Kentico (by the way where TreeContextMenu is registered? I checked the forms, the modules, can't find it.. :( )
- then do the redirect with HttpContext.Current.Server.Transfer to my custom control.

is this the recommended way? (where do I have to register my new TreeContextMenu control?

Thanks in advance!

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 1/21/2010 4:04:40 AM
   
RE:What is the recommended way to modify Kentico User Controls?
Hello,

the system controls are not registered in UI. If you create a clone of TreeContextMenu you can change the path to that control in:
<web site folder>\CMSModules\Content\CMSDesk\Tree.aspx

I should note you that you need to check this file after every upgrade because the upgrade procedure can re-write this file (the path to the control). Regrettably, there is not a better way.


Best regards,
Helena Grulichova