Rank: Newbie Groups: Member
Joined: 7/3/2010 Posts: 6 Points: 18
|
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
|
Rank: Administration Groups: Administration
, Member
Joined: 12/30/2004 Posts: 1,674 Points: 1,824 Location: Wageningen (NL)
|
Why did you add the enum in the first place?
|
Rank: Newbie Groups: Member
Joined: 7/3/2010 Posts: 6 Points: 18
|
hi Martijnb,
Thnks for viewing my query
The enum list was showing on the custom drop down on the section settings in the cms. for example if a module has a section setting category. it shows on the category dropdown in the editsection page
thanks Raj
|