views:

72

answers:

1

Is it possible to create more than just 1 content type with just one feature in Sharepoint?

I've a got a project where a couple of content types inherits from another one and I have 5 features just creating those content types.

A: 

Yes. In fact sharepoint has a feature that has basic content types defined in [12 Hive]/TEMPLATES/FEATURES/ctypes folder.

Just define multiple <ContentType> tags as seen here and it works!

Janis Veinbergs
Thank you! It'll be easier to install and maintain!
mrmuggles
By the way, there is a trick to activate multiple features by only activating one. For a feature, you can set Hidden='TRUE' so it does not appear in feature list. However on other feature you can define ActivationDependency that will activate dependant features. However it does not work recursively.
Janis Veinbergs