Hello!
How should the path to the resource string containing error messages should be passed to Range attribute in int properties?
I have declared the property like this:
[Display( GroupName = SystemTabNames.Content, Order = 150)] [Range(1,5, ErrorMessageResourceName = "/contenttypes/icontentdata/errormessages/invalidamountnews")] public virtual int AmountItems { get; set; }
And then in language file:
<language name="Svenska" id="sv"><contenttypes><!-- general definitions --><icontentdata><properties><metakeywords><caption>Nyckelord</caption></metakeywords><metadescription><caption>Beskrivning</caption></metadescription><maincontentarea><caption>Stor innehållsyta</caption></maincontentarea><mainbody><caption>Brödtext</caption><help>Brödtexten visas i sidans centralyta. Via XHTML-editorn kan du infoga exempelvis text, bilder och tabeller.</help></mainbody><image></properties><errormessages><invalidamountnews>Antalet att visa kan inte vara mindre än 0</invalidamountnews></errormessages></icontentdata></contenttypes></language>
This is not working and the property view for the pages of the page type loads forever, so I guess I'm passing the wrong path to the attribute. Can't find any good example either.
Does anybody have any suggestions?
/Kenia