Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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>
share|improve this question

1 Answer 1

up vote 3 down vote accepted

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>
share|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

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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