-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add to schema Functionality to set Document set view #190
Comments
Hi, |
Hi Paolo, thank you i wrote a extension method for it maybe you can use it in the core in combination with the schema change. |
Hi Paul, |
Hi Paolo, will look it up and send a message thanks again. Paul |
Hi Paulo, have not tested if it still works but i can test it if you want. /// sets the view for a Documentset welcome page. /// /// The context. /// The web. /// The list. /// The contenttype. /// The contenttype. private void SetDocumentSetView(ClientContext context, Web web, List spList, string pContentType, string welcomePageview) {
|
Hi @KbWorks, |
Hi KbWorks Thanks anyway |
Hi @PaoloPia, |
Hi @PaoloPia , I am trying to define the default view for a docset using this code |
I can confirm the previous statement. On the other hand, if you are on premises you can change the documentset welcomepageview |
So here we are 5 years later and there doesn't seem to be a programatic or declaritive way to set the view to be used within a document set. One would assume this would have to be a setting at the library level - this is because:
Please Microsoft, how do we use your tools in a scalable way? |
So here we are 2 more years later and this is still not possible. |
Can we update the "ViewId" in the "SchemaXML"? I tried and the SchemaXML is read-only. |
@MrRCG5 Yes, that's the way to do it currently, and it is pretty easy:
|
It is not working for me using SharePoint online. How is "$node.InnerXml" being updated? Do I need to execute or invoke a change? |
It would be nice to have the possibility to add a view to a document set per listinstance.
pnp:Documentset
<pnp:contenttype id="" name="">
<pnp:view name="all documents"></pnp:view>
pnp:contenttype
</pnp:Documentset>
The text was updated successfully, but these errors were encountered: