Dec 05 2016 01:04 AM
I wonder if it is possible to specify what list view should be used when adding an XsltLitViewWebPart to a page with the PnP Provisioning Engine?
Dec 05 2016 11:49 AM
SolutionJan 04 2017 02:14 AM - edited Jan 04 2017 02:14 AM
Hi,
It's directly supported in PnP via https://github.com/SharePoint/PnP-Sites-Core/issues/584
In your webpart xml add one of the following params:
In my case I have a list view named "Recently modified documents", and added this to the webpart properties xml in my provisining template.
<property name="ViewName" type="string">Recently modified documents</property>
PnP then fixes the hidden view automatically for you.
Jan 05 2017 01:34 AM
Awesome! That really worked, thanks for putting light on this. Wasn't able to see that when going through the PnP source code! Have now replaced my custom extention handler with this!
Jan 05 2017 01:44 AM - edited Jan 05 2017 01:44 AM
Awesome, and feel free to change my answer to "best response" ;)
Dec 05 2016 11:49 AM
Solution