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

Forums / General Discussions / Categories and Tags in custom module

Categories and Tags in custom module

5 posts, 0 answered
  1. Asif
    Asif avatar
    110 posts
    Registered:
    18 Nov 2010
    15 Dec 2010
    Link to this post
    I am using a Custom Module. When I create either cateogry or tag and when I click on it I get an error message

    Server Error in '/' Application.

    The ViewMode "ContentItemsView" is not defined for this control.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.ArgumentException: The ViewMode "ContentItemsView" is not defined for this control.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [ArgumentException: The ViewMode "ContentItemsView" is not defined for this control.]
       Telerik.Cms.Web.UI.ViewModeControl`1.get_CurrentView() +146
       Telerik.Cms.Web.UI.ViewModeControl`1.LoadCurrentView(Control owner) +25
       Telerik.Cms.Web.UI.ViewModeControl`1.InitializeControls(Control viewContainer) +42
       Telerik.Cms.Web.UI.Backend.ControlPanel`1.InitializeControls(Control container) +23
       Telerik.Cms.Web.UI.ViewModeControl`1.CreateChildControls() +101
       System.Web.UI.Control.EnsureChildControls() +87
       System.Web.UI.Control.PreRenderRecursiveInternal() +44
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
    
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    15 Dec 2010
    Link to this post
    Hi Asif,

    Please take a look at this post - The ViewMode "ContentItemsView" is not defined for this control. error with a custom module

    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
  3. Asif
    Asif avatar
    110 posts
    Registered:
    18 Nov 2010
    15 Dec 2010
    Link to this post
    Hi,
    I am not sure what the template file (ascx) should put into this code. Because I dont have any template file for categories view in the Custom Module project.

    private const string ModuleCategoriesTemplateName = "Telerik.Samples.Resources.ControlTemplates.Backend.ModuleCategoriesView.ascx";
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    15 Dec 2010
    Link to this post
    Hello Asif,

    You can download external templates archive and reuse the template  CategoriesView.ascx from
    ~/Sitefinity/Admin/ControlTemplates/Generic_Content folder from the external templates zip.

    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
  5. Asif
    Asif avatar
    110 posts
    Registered:
    18 Nov 2010
    15 Dec 2010
    Link to this post
    Hi,
    Now I have used one of the external template. But found following error.

    Invalid resource name (Telerik.GSSI.Module.Resources.ControlTemplates.Backend.FAQsCategoriesView.ascx) for assembly (Telerik.Cms.Engine, Version=3.7.2096.2, Culture=neutral, PublicKeyToken=dfeaee0e3978ac79) or empty template.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.ArgumentException: Invalid resource name (Telerik.GSSI.Module.Resources.ControlTemplates.Backend.FAQsCategoriesView.ascx) for assembly (Telerik.Cms.Engine, Version=3.7.2096.2, Culture=neutral, PublicKeyToken=dfeaee0e3978ac79) or empty template.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [ArgumentException: Invalid resource name (Telerik.GSSI.Module.Resources.ControlTemplates.Backend.FAQsCategoriesView.ascx) for assembly (Telerik.Cms.Engine, Version=3.7.2096.2, Culture=neutral, PublicKeyToken=dfeaee0e3978ac79) or empty template.]
       Telerik.Framework.Web.ControlUtils.GetTemplate(String virtualPath, String resourceFileName, Type assemblyInfo, Type localizationAssemblyInfo) +844
       Telerik.Framework.Web.ControlUtils.GetTemplate(String virtualPath, String resourceFileName, Type assemblyInfo, Type localizationAssemblyInfo, Type templateMapType, String additionalTemplateKey) +324
       Telerik.Cms.Web.UI.ViewModeControl`1.CreateLayoutTemplate(Type assemblyInfo, Type localizationAssemblyInfo) +104
       Telerik.Cms.Web.UI.ViewModeControl`1.get_LayoutTemplate() +25
       Telerik.Cms.Web.UI.ViewModeControl`1.get_Container() +39
       Telerik.Cms.Web.UI.ViewModeControl`1.CreateChildControls() +44
       System.Web.UI.Control.EnsureChildControls() +87
       System.Web.UI.Control.PreRenderRecursiveInternal() +44
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
    
Register for webinar
5 posts, 0 answered