it's me again.
Going deeper and deeper into PnP and remote provisioning is like a roller coaster experience. We can do so much things ! And yet, there is like no real formal documentation.
What i want :
Well, for today, my question is quite simple : Via my xml template, how do I set up my Library settings ? And more particularly, how do i set up metadata navigation (aka key filters) for my Library ?
What i did :
For the moment, i have two things.
- i've added the Web Feature in my Site Creation's xml template. Using this code below :
<
<pnp:Features> <pnp:WebFeatures><pnp:Feature ID="7201d6a4-a5d3-49a1-8c19-19c4bac6e668" Deactivate="false" Description="Metadata Navigation and Filtering (MetaDataNav) site feature" /></pnp:WebFeatures></pnp:Features>
- I've created my Document Library, enabling ContentTypes etc... like this :
<
<pnp:ListInstance Title="Documents projet"
Description="Documents partagées entre les acteurs du projet (ASI et client)"
TemplateType="101"
Url="documentprojet"
EnableVersioning="true"
EnableMinorVersions="true"
MinorVersionLimit="20"
MaxVersionLimit="100"
DraftVersionVisibility="0"
ContentTypesEnabled="true"
RemoveExistingContentTypes="true"
EnableFolderCreation="true">
<pnp:ContentTypeBindings>
<pnp:ContentTypeBinding ContentTypeID="0x010100BBD2E6E36069334ABFD4717B8C2FA4D9" Default="true" />
<pnp:ContentTypeBinding ContentTypeID="0x010100BBD2E6E36069334ABFD4717B8C2FA4D901"/>
<pnp:ContentTypeBinding ContentTypeID="0x010100BBD2E6E36069334ABFD4717B8C2FA4D902"/>
</pnp:ContentTypeBindings>
<pnp:FieldDefaults>
<pnp:FieldDefault FieldName="EtatValidation">Brouillon</pnp:FieldDefault>
<pnp:FieldDefault FieldName="EtatValidationCR">A valider</pnp:FieldDefault>
<pnp:FieldDefault FieldName="NumeroContrat">{parameter:NumContrat}</pnp:FieldDefault>
<pnp:FieldDefault FieldName="Client">{parameter:Client}</pnp:FieldDefault>
<pnp:FieldDefault FieldName="NomProjet">{parameter:Projet}</pnp:FieldDefault>
</pnp:FieldDefaults>
</pnp:ListInstance>
But i don't see anywhere any settings, any xml attriubte talking about metadata navigation. Is it already implemented or not ?
So, do you know how i should write my Library Creation xml template to set up my Metadata Navigation setting?
Thanks a lot for your help. have a nice day !