More in this section

Forums / Developing with Sitefinity / generic content in user control broken?

generic content in user control broken?

6 posts, 0 answered
  1. Victor
    Victor avatar
    44 posts
    Registered:
    10 Mar 2009
    23 Mar 2009
    Link to this post
    I am experiencing much fail with the sample code from the kb article about adding generic content to user control (see here)

    I get the following exception when I attempt to edit that control in Community 3.6:

    The key "SharedContentInfo" is not defined for resource "Telerik.Cms.Engine.Resources.Messages"

    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 key "SharedContentInfo" is not defined for resource "Telerik.Cms.Engine.Resources.Messages"

    Source Error:

    Line 16: 		if (!IsPostBack && !String.IsNullOrEmpty(Request.QueryString["sfctrlid"]))
    Line 17: 		{
    Line 18: 			this.ControlEditor1.Select(new Guid(Request.QueryString["sfctrlid"]), Request.QueryString["sfdefclid"]);
    Line 19: 		}
    Line 20: 

    Source File: c:\Program Files\telerik\Sitefinity3.6\WebSites\AptifySample\Sitefinity\Admin\CtrlProps.aspx.cs    Line: 18



  2. Pepi
    Pepi avatar
    981 posts
    Registered:
    31 Jan 2017
    24 Mar 2009
    Link to this post
    Hello Victor,

    To solve the problem you need to map Telerik.Cms.Engine.WebControls.HtmlContentEditor control to use an external template. For details please refer to the following forum thread discussing the same issue: Generic Content in User Control and the IContentContainer in 3.6

    Sincerely yours,
    Pepi
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  3. Victor
    Victor avatar
    44 posts
    Registered:
    10 Mar 2009
    24 Mar 2009
    Link to this post
    That fixed it, thank you.

    Can you guys please update that kb article with this information?

  4. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    25 Mar 2009
    Link to this post
    Hello Victor,

    Since this is a private case, we will not update it for now. What we could do is to create a new KB Article, with the most common View map cases. The KB should only provide the idea behind the mapping.

    Thank you for your suggestion though, we should reflect this somewhere anyway.

    Greetings,
    Georgi
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  5. Victor
    Victor avatar
    44 posts
    Registered:
    10 Mar 2009
    25 Mar 2009
    Link to this post
    Your information on that kb doesn't work anymore without the fix in another thread there was no way I would find without asking in these forums.

    Imho if you don't update these kb articles, somebody else is going to come across the same issue and is going to lose several hours/days figuring it out.

  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    26 Mar 2009
    Link to this post
    Hi Victor,

    Thank you for your feedback.

    We are going to update our Dev manual with the new API for 3.6 and I will report your request.

    Best wishes,
    Ivan Dimitrov
    the Telerik team

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