Forum Discussion
Change Document Set Welcome Page Default View
**bleep**..., I kinda expected this answer already, never the less i'm still disappointed :(
The "emulation of user clicks" hack looks really dirty, but then again I don't see another way.
Do you still happen to have the code?
yes i know it is hard but made a blog for it:
https://docs.com/paul-keijzers/4594/unable-to-change-view-of-list-view-web-part-csom
https://docs.com/paul-keijzers/5882/change-documentsetpage-using-csom-office365
- Thomas GielissenJan 23, 2017Copper Contributor
Hi Paul,
I'm going through your code, If I understand it correctly until now, what you are actually just doing is
- Modify the document set welcome page via the limited webpart manager
- Remove/close the default "document set contents" webpart, which will show only documents in the current document set. This is not an XSLTListViewWebPart zo in the webpart properties, the desired view can not be configured.
- Add an xslt list view webpart. Doing this, a new view is created in the list specifically for this webpart.
- Modify this "webpart view" that has been created in the list as desired.Nice workaround! I'm going to fit it to my needs, and I'll post an update later to confirm this solves my problem!
Thanks for the feedback!
Regards,
Thomas
- DeletedJan 24, 2017
Perfect let me know i needed to remove the webparts as there was a bug which displayed all documentset double at the time.
- DeletedMar 31, 2018
Hi Paul !
I also need to change the Document Set Welcome page with CSOM but I can't access your links. I'm always redirected to Office 365 Home page.
Is it possible for you to send me an other link with your code or maybe a description with an exemple of what you did to change the Document set welcome page ?
Thank's