Installation and deployment Questions on installation, system configuration and deployment to the live server.
Version 5.x > Installation and deployment > Adding a usercontrol into the cms View modes: 
User avatar
Member
Member
philip-mosquitodigital.co - 6/2/2011 7:44:30 AM
   
Adding a usercontrol into the cms
Hi there, im wondering if i can adda usercontrol into the cms somehow?

basically in the cms i would like to have a button that downloads a csv to the cms users machine when it is clicked.

Any help appreciated!

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 6/2/2011 8:14:50 AM
   
RE:Adding a usercontrol into the cms
Hi,


you can use the .ascx control directly on your template like: User controls on Portal template or register the control as a web part like: Developing web parts.


Best regards,
Helena Grulichova

User avatar
Member
Member
philip-mosquitodigital.co - 6/3/2011 4:45:44 AM
   
RE:Adding a usercontrol into the cms
Hi Helena, thank you for your reply. This shows me how i can add the usercontrol to the front-end of my website: "http://devnet.kentico.com/docs/devguide/adding_custom_code_to_the_portal_page_template.htm"

what i need to do is add the user control somewhere in the cms so that it appears to be part of the cms itself.

i.e. i log into the cms www.mywebsite.com/cmsdesk > hit a button somewhere, then a csv file is downloaded to my machine.

is it possible to change the cmsdesk template?

User avatar
Kentico Support
Kentico Support
kentico_radekm - 6/3/2011 4:57:36 AM
   
RE:Adding a usercontrol into the cms
Hello.

Yes, it is possible. CMSDesk (or CMSSiteManager) interface consists of standard aspx and ascx files, so you can modify any of them. For example, CMSDesk interface pages can be found within <project folder>/CMSDesk folder. However, you can add a new tab within CMSDesk UI in a supported way, via UI personalization module. It supports personalizable parts of CMS Desk and you can find more info here: http://devnet.kentico.com/docs/devguide/ui_personalization_cmsdesk_overview.htm

Best Regards,
Radek Macalik

User avatar
Member
Member
philip-mosquitodigital.co - 6/3/2011 6:43:04 AM
   
RE:Adding a usercontrol into the cms
Brilliant! thanks Radek

User avatar
Member
Member
jkacher-gmail - 9/21/2011 3:01:49 PM
   
RE:Adding a usercontrol into the cms
I am reading a manual, added a GetTime.ascx as instructed, opened the Home page in Design mode, tried to add a user-control from General to the left zone - the General does not have a User-Control option! Where is it?

User avatar
Member
Member
jkacher-gmail - 9/21/2011 3:12:18 PM
   
RE:Adding a usercontrol into the cms
Strange - the Home page does not offer User Control, but other pages do.

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 9/21/2011 7:20:22 PM
   
RE:Adding a usercontrol into the cms
Hello,

This sounds as you would use a widget zone instead of a web part zone. Please check the zone properties and select widget zone type: none. Please check the first two images in this documentation for more information.

Best regards,
Boris Pocatko

User avatar
Member
Member
jkacher-gmail - 9/22/2011 4:01:58 PM
   
RE:Adding a usercontrol into the cms
It said if I clicked None all customization would be removed.
But I got my answer. And I want to congratulate the unknown author who led me by hand step by step, and I tried to fall of the path so many times but he/she carefully picked me and put back on the path by providing minute details :)

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 9/23/2011 10:43:29 AM
   
RE:Adding a usercontrol into the cms
Hello,

Yes, changing the region type will result into data loss, however you can re-create the same setup with web parts which are set up the same way as those widget. Just write down the settings you've used on the widgets and use them on the web parts.

Best regards,
Boris Pocatko