Adding Custom Controls

Posted by Community Admin on 03-Aug-2018 18:46

Adding Custom Controls

All Replies

Posted by Community Admin on 13-May-2010 00:00

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" />

In 4.0, I'm working with the following.
<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>

The SimpleLink works, the ComplexLink throws an exception when trying to set embedded control properties in the Page_Load event.

I cut-and-pasted from the navigation controls section, that's why there are some references to navigation.

Posted by Community Admin on 13-May-2010 00:00
Posted by Community Admin on 18-Oct-2010 00:00

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.

Posted by Community Admin on 18-Oct-2010 00:00

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

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

This thread is closed