More in this section
Forums / Developing with Sitefinity / Custom Label and messages resource

Custom Label and messages resource

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
1 posts, 0 answered
  1. Sri
    Sri avatar
    0 posts
    Registered:
    28 Dec 2016
    14 Apr 2017
    Link to this post

    i am using sitefinity 10 and created a custom resource for labels and messags and shows up as #ResourceNotFound#:TestResources:TestResourcesDescription

    here is tutorial http://docs.sitefinity.com/for-developers-create-custom-resource-classes

    here is my code

     [ObjectInfo(typeof(TestResources), Title = "TestResourcesTitle", Description = "TestResourcesDescription")]
        public class TestResources : Resource
        {
            public TestResources()
            {
            }

            public TestResources(ResourceDataProvider dataProvider)
                : base(dataProvider)
            {
            }

            [ResourceEntry("Resource1",
                Value = "Resource1",
                Description = "Resource1")]
            public string Resource1
            {
                get
                {
                    return this["Resource1"];
                }
            }
        }

    i tried adding in the resourceclassid as well but no change.

    Thanks for your help!

1 posts, 0 answered