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

Forums / Developing with Sitefinity / Custom Label and messages resource

Custom Label and messages resource

1 posts, 0 answered
  1. Sri
    Sri avatar
    0 posts
    Registered:
    28 Dec 2016
    14 Apr
    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