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/">
          <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>
          <Value xmlns:q7="http://www.w3.org/2001/XMLSchema" p4:type="q7:boolean" xmlns:p4="http://www.w3.org/2001/XMLSchema-instance">true</Value>
  • 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. – theChrisKent Mar 4 '16 at 16:03

Add the following property to ArrayOfProperty

    <Value xmlns:q7="http://www.w3.org/2001/XMLSchema" p4:type="q7:boolean" xmlns:p4="http://www.w3.org/2001/XMLSchema-instance">true</Value>
| improve this answer | |
  • Thanks for your help, but this doesn't seem to work. Are there other things I need to change? – Ruben Herman Feb 22 '12 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? – Ruben Herman Feb 22 '12 at 11:50
  • PS. I've updated my xml code in my question – Ruben Herman Feb 22 '12 at 11:54
  • IsPathRendendered should have done it, the rest of the definitions in both posts look right. – Louis Feb 22 '12 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 Feb 22 '12 at 12:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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