SOLVED

Apply Theme on Site Collection (with subsites)

%3CLINGO-SUB%20id%3D%22lingo-sub-25828%22%20slang%3D%22en-US%22%3EApply%20Theme%20on%20Site%20Collection%20(with%20subsites)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-25828%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20All%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20are%20currently%20using%20the%20PnP%20extension%20method%26nbsp%3BSetThemeByUrl()%20that%20applies%20all%20themes%20by%20iterating%20through%20every%20web%20of%20a%20site%20collection%2C%20starting%20with%20the%20root%20web.%20This%20approach%20takes%20a%20fair%20amount%20of%20time%20and%20can%20endup%20in%20nasty%20timeouts.%26nbsp%3B%3C%2FP%3E%3CP%3EUntil%20Nov%202014%20there%20was%20a%20property%20that%20could%20be%20set%20with%20CSOM%20(%3CSPAN%3EThemedCssFolderUrl)%20that%20was%20significantly%20faster%20than%20the%20above%20approach.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%3CBR%20%2F%3EThere%20is%20a%20User%20Voice%20request%20that%20is%20currently%20requesting%20this%20to%20come%20back.%20Does%20anybody%20have%20any%20information%20how%20long%20this%20will%20take%20to%20come%20back%20(or%20not)%3F%20We%20are%20currently%20thinking%20of%20writing%20our%20own%20solution%20to%20fix%20that%20problem.%20What%20I%20can%20see%20in%20their%20code%2C%20the%20Dev%20PnP%20team%20is%20also%20waiting%20for%20this.%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F369%22%20target%3D%22_blank%22%3E%40Vesa%20Juvonen%3C%2FA%3E%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F122%22%20target%3D%22_blank%22%3E%40Erwin%20van%20Hunen%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FOfficeDev%2FPnP-Sites-Core%2Fblob%2Fmaster%2FCore%2FOfficeDevPnP.Core%2FAppModelExtensions%2FBrandingExtensions.cs%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FOfficeDev%2FPnP-Sites-Core%2Fblob%2Fmaster%2FCore%2FOfficeDevPnP.Core%2FAppModelExtensions%2FBrandingExtensions.cs%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Foffice365.uservoice.com%2Fforums%2F273492-sites-and-collaboration%2Fsuggestions%2F9342237-make-the-themedcssfolderurl-property-of-the-web-ob%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Foffice365.uservoice.com%2Fforums%2F273492-sites-and-collaboration%2Fsuggestions%2F9342237-make-the-themedcssfolderurl-property-of-the-web-ob%26nbsp%3B%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-31815%22%20slang%3D%22en-US%22%3ERe%3A%20Apply%20Theme%20on%20Site%20Collection%20(with%20subsites)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-31815%22%20slang%3D%22en-US%22%3E%3CP%3EJust%20to%20close%20up%20this%20-%20NuGet%20package%20is%20now%20out%20-%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdev.office.com%2Fblogs%2Fnew-sharepoint-csom-version-released-for-Office-365-november-2016%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdev.office.com%2Fblogs%2Fnew-sharepoint-csom-version-released-for-Office-365-november-2016%3C%2FA%3E.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-31768%22%20slang%3D%22en-US%22%3ERe%3A%20Apply%20Theme%20on%20Site%20Collection%20(with%20subsites)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-31768%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20for%20this%20update%20Vesa!%20This%20will%20help%20us%20a%20lot.%20Looking%20forward%20for%20the%20release.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-31765%22%20slang%3D%22en-US%22%3ERe%3A%20Apply%20Theme%20on%20Site%20Collection%20(with%20subsites)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-31765%22%20slang%3D%22en-US%22%3E%3CP%3ESome%20updated%20news%20on%20this.%20We%20will%20push%20out%20November%202016%20release%20of%20SharePoint%20Online%20NuGet%20packages%20this%20week%20and%20%22%3CSPAN%3EThemedCssFolderUrl%22%20property%20will%20be%20included%20with%20this%20release.%26nbsp%3BHopefully%20this%20helps%26nbsp%3Bwith%20your%20customization%20requirements.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-27354%22%20slang%3D%22en-US%22%3ERe%3A%20Apply%20Theme%20on%20Site%20Collection%20(with%20subsites)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-27354%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20for%20the%20response%20Vesa.%20Not%20the%20answer%20we%20wanted%20to%20hear%20though.%20%3Cimg%20id%3D%22smileywink%22%20class%3D%22emoticon%20emoticon-smileywink%22%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Fi%2Fsmilies%2F16x16_smiley-wink.png%22%20alt%3D%22Smiley%20Wink%22%20title%3D%22Smiley%20Wink%22%20%2F%3E%20Working%20on%20our%20on%20solution%20then.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-27184%22%20slang%3D%22en-US%22%3ERe%3A%20Apply%20Theme%20on%20Site%20Collection%20(with%20subsites)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-27184%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20don't%20have%20yet%20timeline%20or%20even%20confirmed%20use%20case%20for%20this%2C%20but%20it%20might%20arrive%20as%20part%20of%20the%20monthly%20releases%20we%20do%20for%20SharePoint%26nbsp%3BOnline.%20With%20on-premises%20situation%20is%20slightly%20more%20complex%20and%20I%20doubt%20that%20this%20woudl%20be%20arriving%20for%20the%20CSOM.%20It's%20not%20optimal%20-%20absolutely%20get%20that.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Hi All

 

We are currently using the PnP extension method SetThemeByUrl() that applies all themes by iterating through every web of a site collection, starting with the root web. This approach takes a fair amount of time and can endup in nasty timeouts. 

Until Nov 2014 there was a property that could be set with CSOM (ThemedCssFolderUrl) that was significantly faster than the above approach. 


There is a User Voice request that is currently requesting this to come back. Does anybody have any information how long this will take to come back (or not)? We are currently thinking of writing our own solution to fix that problem. What I can see in their code, the Dev PnP team is also waiting for this. @Vesa Juvonen @Erwin van Hunen

 

https://github.com/OfficeDev/PnP-Sites-Core/blob/master/Core/OfficeDevPnP.Core/AppModelExtensions/Br...

https://office365.uservoice.com/forums/273492-sites-and-collaboration/suggestions/9342237-make-the-t...

 

5 Replies
Highlighted

We don't have yet timeline or even confirmed use case for this, but it might arrive as part of the monthly releases we do for SharePoint Online. With on-premises situation is slightly more complex and I doubt that this woudl be arriving for the CSOM. It's not optimal - absolutely get that. 

 

Highlighted

Thanks for the response Vesa. Not the answer we wanted to hear though. Smiley Wink Working on our on solution then.

Highlighted

Some updated news on this. We will push out November 2016 release of SharePoint Online NuGet packages this week and "ThemedCssFolderUrl" property will be included with this release. Hopefully this helps with your customization requirements.

Highlighted

Thanks for this update Vesa! This will help us a lot. Looking forward for the release.

Highlighted
Best Response confirmed by Sandro Felder (New Contributor)