none
Publishing HTML Field and crawled properties RRS feed

  • Question

  • Hi

    When defining a Publishing HTML Field with XML and using a WSP to deploy the field to SharePoint the crawled property "ows_r_HTML_NameOfTheField" that holds the content of the field with the correct HTML markup is not created. One way to fix this issue is to add 'SourceID="http://schemas.microsoft.com/sharepoint/v3"' to the XML definition of the field. Is this how it should be done? Or is there another way to fix this problem? Because when creating a Publishing Field through the SharePoint UI the respective crawled properties are created as expected even though the property "SourceID" contains a different value.

    This is the definition of the field:

    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">  
      <Field
           ID="{cfc59aaa-9ae2-4ec3-a151-6a7a96d36935}"
           Name="MyHTML"
           StaticName="MyHTML"
           DisplayName="MyHTML"
           Type="HTML"
           RichText="TRUE"
           RichTextMode="FullHtml"
           Required="FALSE"
           Hidden="FALSE"
           Viewable="TRUE"
           ReadOnly="FALSE"
           Group="My Group">
      </Field>
    </Elements>

    Any help would be greatly appreciated.

    -tj



    • Edited by tjakob Tuesday, January 8, 2013 5:18 PM
    Tuesday, January 8, 2013 5:18 PM

All replies