3

I've added a custom Managed Metadata field in my custom contenttype but need to show the full path. Anyone knows how to do this? (if possible with xml, else with c#)

XML so far:

  <Field ID="{0DEB6928-56E5-4E36-B2C7-75C1F0A7D49C}" Name="Process0" DisplayName="Process_0" StaticName="Process0" Group="Sioen" Type="Note" ShowInViewForms="FALSE" Hidden="TRUE" CanToggleHidden="TRUE" RowOrdinal="0" DisplaceOnUpgrade="TRUE" xmlns="http://schemas.microsoft.com/sharepoint/"/>
  <Field ID="{D1F39E25-9DB1-49FA-B7A2-993795A1251F}" Name="Process"  DisplayName="Process" StaticName="Process" Group="Sioen" Type="TaxonomyFieldType" Required="TRUE" ShowField="Path1033" DisplaceOnUpgrade="TRUE" xmlns="http://schemas.microsoft.com/sharepoint/">
    <Customization>
      <ArrayOfProperty>
        <Property>
          <Name>TextField</Name>
          <Value xmlns:q6="http://www.w3.org/2001/XMLSchema" p4:type="q6:string" xmlns:p4="http://www.w3.org/2001/XMLSchema-instance">{0DEB6928-56E5-4E36-B2C7-75C1F0A7D49C}</Value>
        </Property>
        <Property>
          <Name>IsPathRendered</Name>
          <Value xmlns:q7="http://www.w3.org/2001/XMLSchema" p4:type="q7:boolean" xmlns:p4="http://www.w3.org/2001/XMLSchema-instance">true</Value>
        </Property>
      </ArrayOfProperty>
    </Customization>
  </Field>
1
  • This was very helpful. However, I was a little thrown since the question now contains the correct XML (edited after the answer was provided). Just a heads up for those that come after me. Commented Mar 4, 2016 at 16:03

1 Answer 1

4

Add the following property to ArrayOfProperty

<Property>
    <Name>IsPathRendered</Name>
    <Value xmlns:q7="http://www.w3.org/2001/XMLSchema" p4:type="q7:boolean" xmlns:p4="http://www.w3.org/2001/XMLSchema-instance">true</Value>
</Property>
9
  • Thanks for your help, but this doesn't seem to work. Are there other things I need to change? Commented Feb 22, 2012 at 11:44
  • Also, I guess you added the showfield (in your 2nd code example) was added on the wrong field? Or am I wrong? Commented Feb 22, 2012 at 11:50
  • PS. I've updated my xml code in my question Commented Feb 22, 2012 at 11:54
  • IsPathRendendered should have done it, the rest of the definitions in both posts look right.
    – Louis
    Commented Feb 22, 2012 at 12:11
  • AFAIK the ShowField should be Term1033 as in original question, not Path1033, and certainly on the TaxonomyFieldType (not the Note, which does not have that attribute). Actually if you really want to support multilingual it should be literally: ShowField="Term$Resources:core,Language;".
    – Louis
    Commented Feb 22, 2012 at 12:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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