I am trying to attach the edit menu to a field by using the LinkTitle and
LinkTitleMenu field definitions as a quide. However after trying many
approaches it seems that when installing and activating the content type
containing the fields, the other fields defined in the field elements of the
Elements section of my feature are being created ok but the menu fields do
not get created at all (i.e. if I create a view defintion which references my
computed fields they do not appear). Find below the field definitions (I
included FieldRefs to all the Fields that _EditMenuTableStart and
_EditMenuTableEnd reference just in case this was an issue plus I've varied
and omitted SourceID just to see - SourceID is barely documented in the SDK).
The most frustrating element ot this is the complete lack of logging,
diagnstics or error reporting when installing and activating the feautre. I
have diagnostics logging set to verbose and what is in there is practically
useless.
<Field DisplayName="DocumentNox" Type="Text" Required="TRUE"
ID="{D83CD55B-C28E-42d6-BA76-D4A8103CC88F}"
SourceID="{BF60F60D-4D98-428f-928A-BCADCFBA72C6}" StaticName="DocumentNox"
Name="DocumentNox" />
<Field ID="{29F5DBEE-DF83-4864-8E36-3A4863135B72}"
Name="LinkDocumentNoxNoMenu"
SourceID="{BF60F60D-4D98-428f-928A-BCADCFBA72C6}" Type="Computed"
DisplayName="DocumentNox" ReadOnly="TRUE" AuthoringInfo="(linked to
Document)">
<!-- _locID@DisplayName="camlionet34" _locComment=" " -->
<!-- _locID@AuthoringInfo="102" _locComment=" " -->
<FieldRefs>
<FieldRef
ID="{D83CD55B-C28E-42d6-BA76-D4A8103CC88F}" Name="DocumentNox"/>
<FieldRef
ID="{687c7f94-686a-42d3-9b67-2782eac4b4f8}" Name="FileLeafRef"/>
<FieldRef
ID="{1d22ea11-1e32-424e-89ab-9fedbadb6ce1}" Name="ID"/>
</FieldRefs>
<DisplayPattern>
<HTML><![CDATA[<a href="]]></HTML>
<LookupColumn Name="FileLeafRef" HTMLEncode="TRUE"/>
<HTML><![CDATA[" ONCLICK="GoToLink(this);return
false;"
target="_self">]]></HTML>
<Column HTMLEncode='TRUE'
Name='DocumentNox'></Column>
<HTML><![CDATA[</a>]]></HTML>
</DisplayPattern>
</Field>
<Field ID="{F49CF676-ACA8-4eba-8375-530C6C94E939}"
SourceID="{BF60F60D-4D98-428f-928A-BCADCFBA72C6}" Name="LinkDocumentNox"
Type="Computed" DisplayName="DocumentNox" ReadOnly="TRUE" ClassInfo="Menu"
AuthoringInfo="(linked to Document with Edit Menu)"><!--
_locID@DisplayName="camlionet34" _locComment=" " --><!--
_locID@AuthoringInfo="102" _locComment=" " -->
<FieldRefs>
<FieldRef ID="{29F5DBEE-DF83-4864-8E36-3A4863135B72}"
Name="LinkDocumentNoxNoMenu"/>
<FieldRef ID="{3c6303be-e21f-4366-80d7-d6d0a3b22c7a}"
Name="_EditMenuTableStart"/>
<FieldRef ID="{2ea78cef-1bf9-4019-960a-02c41636cb47}"
Name="_EditMenuTableEnd"/>
<FieldRef
ID="{D83CD55B-C28E-42d6-BA76-D4A8103CC88F}" Name="DocumentNox"/>
<FieldRef
ID="{687c7f94-686a-42d3-9b67-2782eac4b4f8}" Name="FileLeafRef"/>
<FieldRef
ID="{56605df6-8fa1-47e4-a04c-5b384d59609f}" Name="FileDirRef"/>
<FieldRef
ID="{30bb605f-5bae-48fe-b4e3-1f81d9772af9}" Name="FSObjType"/>
<FieldRef
ID="{1d22ea11-1e32-424e-89ab-9fedbadb6ce1}" Name="ID"/>
<FieldRef
ID="{105f76ce-724a-4bba-aece-f81f2fce58f5}" Name="ServerUrl"/>
<FieldRef ID="{0c5e0085-eb30-494b-9cdd-ece1d3c649a2}"
Name="HTML_x0020_File_x0020_Type" />
<FieldRef ID="{39360f11-34cf-4356-9945-25c44e68dade}"
Name="File_x0020_Type"/>
<FieldRef ID="{9d30f126-ba48-446b-b8f9-83745f322ebe}"
Name="LinkFileNameNoMenu"/>
<FieldRef
ID="{BA3C27EE-4791-4867-8821-FF99000BAC98}" Name="PermMask"/>
<FieldRef
ID="{1df5e554-ec7e-46a6-901d-d85a3881cb18}" Name="Author"/>
<FieldRef ID="{3881510a-4e4a-4ee8-b102-8ee8e2d0dd4b}"
Name="CheckedOutUserId"/>
<FieldRef
ID="{c63a459d-54ba-4ab7-933a-dcf1c6fadec2}" Name="_SourceUrl" />
<FieldRef ID="{26d0756c-986a-48a7-af35-bf18ab85ff4a}"
Name="_HasCopyDestinations" />
<FieldRef
ID="{6b4e226d-3d88-4a36-808d-a129bf52bccf}" Name="_CopySource"/>
<FieldRef ID="{fdc3b2ed-5bf2-4835-a4bc-b885f3396a61}"
Name="_ModerationStatus" />
<FieldRef
ID="{7841bf41-43d0-4434-9f50-a673baef7631}" Name="_UIVersion" />
<FieldRef ID="{03e45e84-1992-4d42-9116-26f756012634}"
Name="ContentTypeId"/>
</FieldRefs>
<DisplayPattern>
<Field Name="_EditMenuTableStart"/>
<Field Name="LinkDocumentNoxNoMenu"/>
<Field Name="_EditMenuTableEnd"/>
</DisplayPattern>
</Field>