+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Adding a news provider

Adding a news provider

10 posts, 0 answered
  1. Kwinten Volckaert
    Kwinten Volckaert avatar
    41 posts
    Registered:
    01 Mar 2005
    15 Oct 2007
    Link to this post
    I was adding a provider to the news section named 'Interviews' but there seems to be something missing in the user manual on how to do this.
    I added al lthe necessary lines in the web.config and when I look at the news module there is indeed a combobox showing me the interviews. When I select 'Interviews' however I get the following error :
    A required control was not found in the template for "Telerik.Cms.Engine.WebControls.Admin.ControlPanel+ListContainer". The control must be assignable form type "System.Web.UI.WebControls.IButtonControl" and must have ID "createNewButton".

    Do I need to create files somewhere?
  2. Pepi
    Pepi avatar
    981 posts
    Registered:
    28 Oct 2016
    15 Oct 2007
    Link to this post
    Hello Kwinten,

    The reason for the exception is that it could not find news list template. The solution is to modify the web.config element with the name Interviews as follows:

    <add name="Interviews"   
        visible="False"  
        defaultMetaField="Title"  
        securityProviderName=""  
        allowVersioning="True"  
        applicationName="/Interviews"  
        versioningProviderName=""  
        connectionStringName="GenericContentConnection"  
        type="Telerik.Cms.Engine.Data.Providers.DefaultProvider, Telerik.Cms.Engine.Data"  
        listTemplate="~/Sitefinity/Admin/ControlTemplates/News/ControlPanelList.ascx"   
        insertTemplate="~/Sitefinity/Admin/ControlTemplates/News/ControlPanelInsert.ascx"   
        editTemplate="~/Sitefinity/Admin/ControlTemplates/News/ControlPanelEdit.ascx"   
        permissionsTemplate="~/Sitefinity/Admin/ControlTemplates/News/ControlPanelPermissions.ascx"   
        commandPanelTemplate="~/Sitefinity/Admin/ControlTemplates/News/CommandPanel.ascx"   
        editorTemplate="~/Sitefinity/Admin/ControlTemplates/News/EditorTemplate.ascx"   
        shareContentDialogTemplate="~/Sitefinity/Admin/ControlTemplates/News/NewContentDialog.ascx"   
              selectContentDialogTemplate="~/Sitefinity/Admin/ControlTemplates/News/SelectContentDialog.ascx"   
        contentVersionViewUrl="~/Sitefinity/Admin/ControlTemplates/News/ContentVersionView.aspx"   
        commentsListTemplate="~/Sitefinity/Admin/ControlTemplates/News/CommentsList.ascx"   
        commentsEditTemplate="~/Sitefinity/Admin/ControlTemplates/News/CommentsEdit.ascx"   
        commentsListPublicTemplate="~/Sitefinity/ControlTemplates/News/CommentsList.ascx"   
                                  contentSelectorTemplate="~/Sitefinity/Admin/ControlTemplates/GenericContent/ContentSelector.ascx"  
        commentsModeration="true" /> 

    i.e. you should specify the path to the templates used in News module.

    Let us know how it goes.

    Greetings,
    Pepi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Kelly
    Kelly avatar
    5 posts
    Registered:
    30 Jul 2007
    15 Oct 2007
    Link to this post
    That I believe would be in the telerik > cmsEngine > providers section of the web.config file.
  4. Kwinten Volckaert
    Kwinten Volckaert avatar
    41 posts
    Registered:
    01 Mar 2005
    16 Oct 2007
    Link to this post
    I added the necessary section and made all new files in a different folder for further customization.
    Everything seems to be working except the categories and the tags...I copied all files in the SiteFinity/admin/ControlTemplates/News section to UserControls/Interviews/admin/ section with the resource files.
    when I click in the admin module on Categories or Tags the following error is visible :
    Categories : 
    A required control was not found in the template for "Telerik.Cms.Engine.WebControls.Categories.CategoriesManagement+CategoriesContainer". The control must be assignable form type "System.Web.UI.Control" and must have ID "emptyWindow".

    Tags:
    A required control was not found in the template for "Telerik.Cms.Engine.WebControls.Tags.TagsManagement+TagsManagementContainer". The control must be assignable form type "System.Web.UI.Control" and must have ID "tagsTabStrip".

    What am I missing
  5. Bob
    Bob avatar
    330 posts
    Registered:
    24 Sep 2012
    16 Oct 2007
    Link to this post
    Hello Kwinten,

    That means that the specified templates are not the correct ones. We may be able to identify the problem if you send us the entire telerik/cmsEngine/providers section. Also if you are using v3.1 you may find it easier to copy the entire folder ~/Sitefinity/Admin/ControlTemplates/News and rename it to the same name as the provider, in your case ‘Interviews’. If you choose the second approach, don’t forget to remove all paths specified in the web.config for that provider as they will override the default ones.

    Regards,
    Bob
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. Kwinten Volckaert
    Kwinten Volckaert avatar
    41 posts
    Registered:
    01 Mar 2005
    16 Oct 2007
    Link to this post
    Here's my provider section, I've copied all he news folder to UserControls/Interviews (didn't copied ControlTemplates folder between them however)

    <cmsEngine defaultProvider="Generic_Content">

    <providers>

    <clear/>

    <add name="Generic_Content" visible="True" defaultMetaField="Name" securityProviderName="" allowLocalization="False" allowVersioning="True" allowWorkflow="False" allowComments="false" commentsModeration="true" versioningProviderName="" connectionStringName="GenericContentConnection" type="Telerik.Cms.Engine.Data.Providers.DefaultProvider, Telerik.Cms.Engine.Data"/>

    <add name="News" visible="False" defaultMetaField="Title" securityProviderName="" allowVersioning="True" applicationName="/News" versioningProviderName="" connectionStringName="GenericContentConnection" type="Telerik.Cms.Engine.Data.Providers.DefaultProvider, Telerik.Cms.Engine.Data" commentsModeration="true"/>

    <add name="Blogs" visible="False" defaultMetaField="Title" applicationName="/Blogs" allowVersioning="True" allowLocalization="False" localizationProviderName="" allowWorkflow="False" securityProviderName="" versioningProviderName="" connectionStringName="GenericContentConnection" type="Telerik.Blogs.Data.DefaultBlogProvider, Telerik.Blogs.Data"/>

    <add name="Interviews"

    visible="False"

    defaultMetaField="Title"

    securityProviderName=""

    allowVersioning="True"

    applicationName="/Interviews"

    versioningProviderName=""

    connectionStringName="GenericContentConnection"

    type="Telerik.Cms.Engine.Data.Providers.DefaultProvider, Telerik.Cms.Engine.Data"

    listTemplate="~/UserControls/Interviews/Admin/ControlPanelList.ascx"

    insertTemplate="~/UserControls/Interviews/Admin/ControlPanelInsert.ascx"

    editTemplate="~/UserControls/Interviews/Admin/ControlPanelEdit.ascx"

    permissionsTemplate="~/UserControls/Interviews/Admin/ControlPanelPermissions.ascx"

    commandPanelTemplate="~/UserControls/Interviews/Admin/CommandPanel.ascx"

    editorTemplate="~/UserControls/Interviews/Admin/EditorTemplate.ascx"

    shareContentDialogTemplate="~/UserControls/Interviews/Admin/NewContentDialog.ascx"

    selectContentDialogTemplate="~/UserControls/Interviews/Admin/SelectContentDialog.ascx"

    contentVersionViewUrl="~/UserControls/Interviews/Admin/ContentVersionView.aspx"

    commentsListTemplate="~/UserControls/Interviews/Admin/CommentsList.ascx"

    commentsEditTemplate="~/UserControls/Interviews/Admin/CommentsEdit.ascx"

    contentSelectorTemplate="~/Sitefinity/Admin/ControlTemplates/GenericContent/ContentSelector.ascx"

    commentsModeration="true" />

    </providers>

  7. Bob
    Bob avatar
    330 posts
    Registered:
    24 Sep 2012
    16 Oct 2007
    Link to this post
    Hi Kwinten,

    Everything looks OK. Please make sure you copied the content of the News folder from a v3.1 project or try the other approach with the default paths. If that doesn’t help, please send us your project to investigate the problem.

    Best wishes,
    Bob
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  8. Kwinten Volckaert
    Kwinten Volckaert avatar
    41 posts
    Registered:
    01 Mar 2005
    18 Oct 2007
    Link to this post
    Everything seems to be working as long as I keep it in the SiteFinity folders.
  9. dimiter
    dimiter avatar
    13 posts
    Registered:
    25 Apr 2007
    02 Apr 2009
    Link to this post

    Hi

    I created a new sitefinity project and opened "~/Sitefinity/Admin/ControlTemplates/News/" folder. I expected to find the ControlPanelInsert.ascx control file there but it's not. Only a ContentVersionView.ascx user control file exists in that folder. I need the ControlPanelInsert.ascx file to edit it as I added a new meta field (Author2) and I have to make it visible in the administration. Why is that file missing? Am i doing something wrong?
    Note that the file is missing in many templates(not only under News, but also Blogs, Generic_Content, Events...)

    Greetings,

    Dimiter

  10. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    02 Apr 2009
    Link to this post
    Hello Dimiter,

    Please take a look at the KB Article How to map a view to an external template, in Sitefinity 3.6.
    You will find an archive with embedded templates in your client.net account, but make sure you read the article first. It will explain you more.

    Sincerely yours,
    Georgi
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Register for webinar
10 posts, 0 answered