Forum Discussion
PnP-Partner-Pack - Site Provisioning page with documentlibrary view is not correct
Hi,
I am having a little issue i provision a subsite using PNP in the subsite i have a Page with 3 Webpart 2 of them are documentlibrarys. the problem i have is that the view is only 3 default columns. but the default view of my doc library is different.
Now i tried to use a extention to edit the view i had no luck. I tried removing the Webpart and add it again with correct view no succes.
Does anybody know how to do this with csom?
Kr,
Paul
- AnonymousAug 14, 2016
He guys found the solution and made a blog for it: https://docs.com/paul-keijzers/4594/unable-to-change-view-of-list-view-web-part-csom
6 Replies
Great that you have found a solution Paul.
Can this be integrated into the Office Dev PnP Provisioning Engine, so the use of an extension method is not needed anymore? VesaJuvonen, BertJansen
- BertJansen
Microsoft
Today I've merged the PR's for issue 584: https://github.com/OfficeDev/PnP-Sites-Core/issues/584. Think this should do the same as well
Looks promising BertJansen.
Does this mean it's currently in the Dev-branch and will in the master-branch for the September PnP-Core release?
- Anonymous
He guys found the solution and made a blog for it: https://docs.com/paul-keijzers/4594/unable-to-change-view-of-list-view-web-part-csom
- Alen PešikanCopper Contributor
HI Paul,
can this be applied to change toolbar settings as well?