Products module resources error
For my project I need a more complex version of the products module, so I just extended it with a couple of fields. I've then Imported the module in my project and all seemed to work well. But when I go to administration -> roles and I then try to edit the permissions on a role, I get the error: Could not find the specified key "Products" or class id "KNLTB.Modules.Products.ProductsResources".
Normally I suspect that there was a resource key missing, so I just added the following key in my resource file.
[
ResourceEntry("Products",
Value ="Producten", Description = "The title of CreateProducts security action.", LastModified = "2011/05/16")]
public string Products
return this["Products"];
Hi Systeembeheer UNIT4,
This issue is fixed internally and will be shipped with the next SDK release. By the way, your first fix seems correct, but you will have to restart the server before trying it again.
Basically, you have to open ProductsResources.cs, then add
/// <summary>
/// Title of the Products
/// </summary>
[ResourceEntry(
"Products"
,
Value =
"Products"
,
Description =
"Products"
,
LastModified =
"2011/05/26"
)]
public
string
Products
get
return
this
[
"Products"
];