#
Bangaram
Hi ,
We have a module called 'Articles' in cuyahoga CMS. This Article module contain category. and we have a corresponding table in the cms called dbo.cm_artclecategory and also we added enum with the name category in the ArticleModule.cs class.
This category enum maps to the values in the dbo.cm_artclecategory Table.
When ever we have to add a new category in to the CMS. we have to modify the enum with the new cateroy. this is we dont want to.
Could you please let me know how to replace this enum in the code. so that the cms can dynamically pick the category from the database.
for ex
public enum Category
{
News = 6,
Blogs =7,
InsuranceGuides = 10,
BusinessGuides = 11,
}
and also the same values in the cm_artclecategory Table
We have a module called 'Articles' in cuyahoga CMS. This Article module contain category. and we have a corresponding table in the cms called dbo.cm_artclecategory and also we added enum with the name category in the ArticleModule.cs class.
This category enum maps to the values in the dbo.cm_artclecategory Table.
When ever we have to add a new category in to the CMS. we have to modify the enum with the new cateroy. this is we dont want to.
Could you please let me know how to replace this enum in the code. so that the cms can dynamically pick the category from the database.
for ex
public enum Category
{
News = 6,
Blogs =7,
InsuranceGuides = 10,
BusinessGuides = 11,
}
and also the same values in the cm_artclecategory Table