0

We have used PNP Provisioning framework to deploy Custom Pages. I am facing below issues:

  1. Even if the Overwrite="false" I can see that the page is modified and in some pages the some webparts are duplicated.
  2. I have to delete this page before deploying which is not a good solution.

Code:

<pnp:File Src="Deployables\Pages\MyPreferences.aspx" Folder="{site}/Pages" Overwrite="false">
    <pnp:WebParts>
        <pnp:WebPart Title="DocumentFilter" Zone="x8a9421e7bff04b82be6e3ec1ae95be48" Order="0">
    </pnp:WebPart>
    <pnp:Contents>
    </pnp:Contents>

    <WebPart ....>
    </WebPart>

  </pnp:WebParts>
</pnp:File>

1 Answer 1

1

If you have Page Layout that includes predefined Web Parts in the Web Part zones, these web parts will be added whenever the Page Layout is applied, please check this is not the case in your situation.

3
  • Page layout don't have predefined Webparts only Zone defined there Feb 16, 2017 at 11:51
  • is there no solution to it ? is it a PNP bug Feb 17, 2017 at 10:50
  • Overwrite=false probably only relates to the file itself and not the web parts. Probably best to raise issue at PnP Git.
    – Jussi Palo
    Feb 27, 2017 at 12:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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