Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have site collection ex: http://microsoft.com/ and i got few child webs:

http://microsoft.com/news/

http://microsoft.com/somethingelse/

   <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <ContentType ID="0000"
                Name="News"
               Group="my froup"
               Description="Page layout for intranet news."
               Inherits="TRUE"
               Version="0">    
    <FieldRefs>
      <FieldRef ID="{3B5B07A0-68DB-4BF6-AAAE-87B77CE430C6}" Name="LookupToPages" />
    </FieldRefs>
  </ContentType>
</Elements>

I added this content type to Web scoped feature.

When i am creating site collection and then child webs i got situation where content type created only on root site.

Web feature is activated on both root and child sites.

enter image description here

How to force sharepoint to create content type on child web?

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

You can only have Content types at Site or List level. So, even if your feature is scoped as web the Content types will be added to the Site level (at root web). From there on, content type will be available, to be added to the lists and document libraries in all webs and so on.

share|improve this answer
    
On each web i want separate lookup field configuration inside my content type. –  Evgeny Jan 6 '13 at 15:40
1  
create two different content types with separated lookup field configuration, and let each web use different content type –  Falak Mahmood Jan 6 '13 at 17:30
    
Falak Mahmood this is not possible. Over 20+ webs. –  Evgeny Jan 6 '13 at 19:31
1  
Would you please describe a little more context here? –  Falak Mahmood Jan 7 '13 at 3:48
    
I got parent site and 20+ child webs. For each web news content type will contains some specific fields that described by customer. Those content types will be generated in code and i want to activate common fields or common web separatelly on each child web. –  Evgeny Jan 9 '13 at 18:00
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.