Forum Discussion
How to extract / export document library templates and add to my pnp-provisioning template?
Hi,
I need to export doc library templates and add them to my pnp-provisioning template to be abble to apply it to other webs.
3 Replies
- NotAlexIron Contributor
Open the site in sharepoint designer
go to all files -> The library with templates -> the files should be there or in forms -> content type name
Hope that helps
- Josef KučeraCopper Contributor
Ok, i got a little bit farher, now I have exported pnp template and I could see links to the document library tamplates in the file (in my case xml file format).
BUT, when I apply the template to a new site collection, after clicking on a new item in any document library with the document library template, it just open an empty page, so that new document based on a template isn't loaded, but on the original site from what is a template exported it works just fine :(
Snippet of lines with links to document library templates in the xml template could be seen on the attached screenshot...
Could you help me to find out where in the code is the issue?
Regards,
Josef
- Kevin_HoytIron ContributorThis is pretty late for you, but I ran in to this question today. The issue is that while the template is added to the list, the document that the template references is not automatically copied over. If you look in your XML file you can see the file it is trying to reference in the hidden Forms folder for your document library. If you copy that file in to that subfolder your template will open successfully.