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

Forums / Bugs & Issues / Using a global resource in pluggable control

Using a global resource in pluggable control

4 posts, 0 answered
  1. higgsy
    higgsy avatar
    336 posts
    Registered:
    05 Aug 2010
    18 Jan 2011
    Link to this post
    Hi,

    Im building a control designer which is in an external assembly. When I try to use a local resource string, i.e:

    <asp:Literal text="<%$ Resources:MyResourceClass, MyString %>" runat="server" />

    I get the error message:

    Telerik.Sitefinity.Web.UI.TemplateException: Local resources are not supported for embedded templates. Please use global resources instead.

    The error message suggests I need to create a resource file in my SitefinityWebApp project, but I'm presuming I've interpreted that incorrectly - otherwise a pluggable component is not so pluggable....

    Thanks
    higgsy

  2. Nikolay Datchev
    Nikolay Datchev avatar
    87 posts
    Registered:
    01 Nov 2016
    21 Jan 2011
    Link to this post
    Hello higgsy,

    The answer is that sitefinity doesn't support combination of embedded templates and local resources. Your only option is to use global project resources, or the better one is if you are doing a custom module to register a sitefinity resource class, since then all your localized labels, can be edited from the Sitefintiy UI and you can also make language packs. Check the Producs sample from the SDK, the global resource class is registered in the module initalization Res.RegisterResource<ProductsResources>() and see the ProductsResources that inherits Telerik.Sitefinity.Localization.Resources.

    All the best,
    Nikolay Datchev
    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. Nicolas
    Nicolas avatar
    156 posts
    Registered:
    19 Jan 2011
    31 Mar 2011
    Link to this post
    Hi,

    I have the same problem and I try with global project resources and it doesn't works too...
    I create a directory App_GlobalResources and resx files in SitefinityWebApp.

    In my acsx template :

    <asp:Label ID="LinkTitleLabel" runat="server" Text="<%$ Resources:LinkBoxTemplate, LinkTitleLabel %>" />



    Regards,
    Nicolas
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    04 Apr 2011
    Link to this post
    Hello ,

    We have a bug that does not allow you to use App_GlobalResources folder in the application when you have a custom control. You can take a look at this post.


    Best wishes,
    Ivan Dimitrov
    the Telerik team

4 posts, 0 answered