Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# Bangaram 10/7/2010 11:14 AM
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
# martijnb 10/7/2010 1:51 PM
Why did you add the enum in the first place?
# Bangaram 10/7/2010 3:25 PM
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