Forum Discussion
apply pnp template on sub site
- DeletedOct 31, 2016
Hi,
it seems the pages are not in the current directory. My pnp:files look like this
<pnp:File src="SiteAssets\Logo.png" Folder="SiteAssets" Overwrite="true" />
where src could be C:\temp\sitesassets\logo.png
so whitout properties
but also do you need to provision the masterpages? If they are already in there why would you like to upload your version?
hope it helps.
Deleted I checked it is loaded when I tried to apply it from debug mode. It applies list instances and when it tries to apply Files (default.aspx) it fails
Ok that is another question. did you try to rename the default.aspx just to try it and remove the webparts..
- Jess LassenOct 31, 2016Copper Contributor
Deleted I did not rename anything.
Please see the following screen shots what I did (all using power shell)
Extracted template from site
Applying template started
Template applying started
Applying template fails
Applying template fails
I am attaching the .xml template file
Thanks
- DeletedOct 31, 2016
Hi,
looked at your template and what i would do narrow it down meaning remove parts of the xml like what happeens if all is commented out except time... etc..
furthermore i see this line:
<pnp:Property Key="PublishingPageLayout" Value="{sitecollection}/_catalogs/masterpage/wizdom2Column.aspx, https://xxxx.sharepoint.com/sites/rayhan{sitecollection}/_catalogs/masterpage/wizdom2Column.aspx" />
Wher you use a url and a sitecolleciton token in 1 url...
- Jess LassenOct 31, 2016Copper ContributorThanks for your reply, my template works if I remove the whole Files section from the xml. But if I need to provision the files what should I do? Can you please let me know?
Thanks for your help