I have SharePoint site collection 'http://microsoft.com/' with few child webs ex: http://microsoft.com/news/
I want to create lookup field to 'Pages' list. On each child web lookup field should point to current web 'Pages' list.
Currently all my created fields are related with 'Pages' lib on root site.
I got field definition:
<Field Name="LookupToPages"
ID="{3B5B07A0-68DB-4BF6-AAAE-87B77CE430C6}"
Type="LookupMulti"
DisplayName="Related News"
Group="Intranet.ContentTypes"
Mult="TRUE"
Overwrite="TRUE"
SourceID="http://schemas.microsoft.com/sharepoint/v3"
List="Pages"
ShowField="Title"/>
This field added to my content type that used in Pages lib:
<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 tried to add field definition to feature with scope 'Site' and 'Web'. Both of them has same results. I just have Lookup column that points to root site.
How to make this field web related?