Populate ChoiceList From Content Type List

Topics: Customizing Orchard, General, Writing modules, Writing themes
Dec 20, 2011 at 4:56 AM

Hi all,
I am creating a site that has a few content types defined that have similar choice lists on the edit screen.
For instance, my Course content type has a ChoiceList of State which has all 50 state abbreviations.
Is there a way to create a State list and use that to populate the ChoiceList instead of having to paste in the options every time?
Some of the other fields I want to do this with are a bit more dynamic than states, which is why we would like a central location to manage them with.
I'd rather do this with installable or out-of-the-box functionality rather than createing a new module just for this.

Thoughts appreciated,

Dec 20, 2011 at 5:15 AM

Have you read this? http://docs.orchardproject.net/Documentation/Creating-1-n-and-n-n-relations

Dec 20, 2011 at 5:58 AM

Thanks Bertrand.

I did various searches but didn't happen to use 1-n in any of them. :)

That helps, I'll have to create some code to do it.

Thanks again,