Thank you for using our services.
First of let me apologize for pointing you to the not-so-correct information. This KB article relates to an older version of Sitefinity - Sitefinity 3.2 to be more precise. The version that your client is using (Sitefinity 3.6 SP2) has different back-end architecture. One of the differences is that templates for Sitefinity controls have been embedded into the CMS's dlls. However this does not mean that you can not modify those templates to achieve what you want. I will now guide you to modify the template for the Generic Content control, so that you will be able to upload files with size larger than 200 KB using this control.
Let me start by explaining a little bit about external templates. As I said earlier Sitefinity controls use templates that are embedded into the CMS's dlls. However you can download the ExternalTemplates.zip from your Client.NET account (see attached image). To gain access to the templates for the controls just copy the contents of the Sitefinity
folder in the archive to the Sitefinity
folder of your project. I would also suggest to view the following blog posts, that relate to using external templates:
Introduction to ControlsConfig file
Mapping a control to use external template
Now you will be able to edit the ~/Sitefinity/Admin/ControlTemplates/Generic_Content/GenericContentDesigner.ascx
as described in the KB. Note that the name for the control template is also different than the one in the KB article. Also if you look at the ViewPaths, UploadPaths, and DeletePaths at of the Flash manager you will see that they point to folders that are existent in your project. I recommend that you either create the Files folder in the root of your project, or provide the paths to point to a folder of your desire, like that:
|<FlashManager ViewPaths="~/Your folder for flash Files/" UploadPaths="~/Your folder for flash Files/" DeletePaths="~/Your folder for flash Files/" MaxUploadFileSize="307200"/>
Now that you have appropriately modified the ~/Sitefinity/Admin/ControlTemplates/Generic_Content/GenericContentDesigner.ascx
, you will have to map the Generic Content Control to use this template. Full guidance on how to do that can be found in the second blog article I gave you. To put it short - you must have a the following file (if not create it) ~/App_Data/Configuration/Telerik.Sitefinity.Configuration.ControlsConfig.xml
. You have to add the following view strings for the Generic Content control:
|<?xml version="1.0" encoding="utf-8"?>
| <!--Defines the layout of GenericContentDesigner control.-->
| <viewSettings hostType="Telerik.Cms.Engine.WebControls.Design.GenericContentDesigner" layoutTemplatePath="~/Sitefinity/Admin/ControlTemplates/Generic_Content/GenericContentDesigner.ascx" />
After you have mapped the control to use the external template you will have to restart your web site in order the changes to take effect.
The web.config file referred to in the KB article is located in the root of your web site (~/web.config
I hope you find this information helpful. If you have more questions concerning Sitefinity do not hesitate to contact us.
the Telerik team