This project is read-only.

creating a new list from a module

Topics: Writing modules
Mar 1, 2011 at 2:42 PM

Hi guys, 

Is there any change to create a new List from a module instead of doing it manually from the admin menu Lists > Create new List ?

I want to write a module with a custom ContentType using the ContainablePart, and once the user enable the module it should create a new List of this ContentType.

thank you in advance.

Mar 1, 2011 at 9:52 PM

List is just *a* content type that has the container part. You can programmatically create an equivalent type yourself. You can also create instances of that type through the Content Manager.