Adding Custom Controls
Maybe I'm overlooking it (or maybe it hasn't been implemented yet), but how do you add custom controls to SF4? 3.7 had an upload dialog.
I've had some success with editing ToolboxesConfig.config. I can get controls that are classes to work, but not ASCXes.
In 3.7, my web.config had
<
add
name
=
"SimpleLink"
section
=
"My Controls"
type
=
"OtherProject.SimpleLink, OtherProject"
/>
<
add
name
=
"ComplexLink"
section
=
"My Controls"
url
=
"~/UserControls/MyControls/ComplexLink.ascx"
/>
<
add
name
=
"MyControlsControlsSection"
title
=
"MyControlsControlsSectionTitle"
description
=
"MyControlsControlsSectionDescription"
resourceClassId
=
"PageResources"
>
<
tools
>
<
add
name
=
"SimpleLink"
title
=
"SimpleLink"
description
=
"SimpleLink"
cssClass
=
"sfNavigationIcn"
type
=
"MyControls.SimpleLink, MyControls"
/>
<
add
name
=
"ComplexLink
"
title
=
"ComplexLink
"
description
=
"ComplexLink
"
cssClass
=
"sfNavigationIcn"
url
=
"~/Sitefinity/CustomControls/ComplexLink.ascx"
/>
</
tools
>
</
add
>
Never mind... it would help if I read the manual.
http://www.sitefinity.com/40/help/developer-manual/controls-adding-a-new-control.html
Hello Telerik team, I might as well add this question here as a follow up. Manual addition of controls for me is fine, however when I try the functionalities available on the CMS site itself for Adding Custom Controls, I keep having this error:
Access to the path 'D:\path_here\App_Data\Sitefinity\Configuration\ToolboxesConfig.config'
is denied.
I've removed restrictions on that directory and placed settings so that my current login would be treated as admin, I wonder what's wrong.
Hi jkregala,
Access to the path 'D:\path_here\App_Data\Sitefinity\Configuration\ToolboxesConfig.config'
ASP.NET or NETWORK SERVICE account does not have read/write permissions over AppData/Sitefinity/Configurations folder. Please grant ASP.NET or NETWORK SERVICE with read/write permissions.
Regards,
Ivan Dimitrov
the Telerik team