Custom Label and messages resource

Posted by Community Admin on 04-Aug-2018 15:02

Custom Label and messages resource

All Replies

Posted by Community Admin on 14-Apr-2017 00:00

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

here is tutorial 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!

This thread is closed