Apply Provisioning Template with branding

%3CLINGO-SUB%20id%3D%22lingo-sub-42020%22%20slang%3D%22en-US%22%3EApply%20Provisioning%20Template%20with%20branding%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-42020%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20folks.%20Lets%20say%20I%20used%20partner%20pack%20to%20create%20a%20template%20from%20a%20site%20collection%20that%20has%20some%20branding%20done%20to%20it.%20How%20dow%20I%20create%20a%20new%20site%20collection%20with%20said%20template%20with%20branding%20applied%20as%20well%3F%20I%20think%20i%20am%20able%20to%20create%20the%20site%20collection%20with%20all%20the%20list%20and%20so%20forth%20but%20I%20am%20not%20so%20sure%20abt%20the%20branding%20part.%20If%20any%20one%20can%20point%20me%20in%20the%20right%20direction%20that%20would%20be%20good.%20Thanks%20in%20advance%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-42760%22%20slang%3D%22en-US%22%3ERe%3A%20Apply%20Provisioning%20Template%20with%20branding%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-42760%22%20slang%3D%22en-US%22%3E%3CP%3EGood%20Day%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%20I%20notice%20that%20when%20i%20extract%20the%20template%20using%20powershell%20I%26nbsp%3Bget%20a%20.pnp%20file.%20This%20.pnp%20file%20contains%20my%20.master%20file%20and%20some%20other%20stuff%2C%20i%20also%20think%20the%20xml%20makes%20reference%20to%20all%20my%20layout.aspx%20files.%26nbsp%3BIn%20my%20testing%26nbsp%3BApplyProvisioningTemplate()%20does%20not%20upload%20these%20files%20to%20the%20new%20site%20collection%20(layout.aspx%20files).%20If%20it%20should%2C%20please%20let%20me%20kow%20what%20i%20did%20wrong%20or%20how%20i%20can%20uppload%20these%20files.%26nbsp%3BThe%20error%20i%20get%20is%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EValue%20cannot%20be%20null.%20Parameter%20name%3A%20stream%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20think%20this%20occures%20when%20its%20processing%20one%20of%20my%20layour%20files%20referenced%20in%20the%20.pnp%20file%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-42102%22%20slang%3D%22en-US%22%3ERe%3A%20Apply%20Provisioning%20Template%20with%20branding%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-42102%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20again%20for%20your%20response%2C%20will%20be%20doing%20some%20more%20reading%20on%20composed%20look%20and%20the%20povisioning%20engine%20and%20report%20my%20solution%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-42027%22%20slang%3D%22en-US%22%3ERe%3A%20Apply%20Provisioning%20Template%20with%20branding%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-42027%22%20slang%3D%22en-US%22%3E%3CP%3EPieter%20is%20right%20alternative%20you%20can%20upload%20a%20alternative%20css%20file%20in%20the%20template.%3C%2FP%3E%3CPRE%3E%20%26lt%3Bpnp%3AWebSettings%20RequestAccessEmail%3D%22%22%20NoCrawl%3D%22false%22%20WelcomePage%3D%22SitePages%2FHome.aspx%22%20SiteLogo%3D%22%22%20AlternateCSS%3D%22%22%20MasterPageUrl%3D%22%7Bmasterpagecatalog%7D%2Fseattle.master%22%20CustomMasterPageUrl%3D%22%7Bmasterpagecatalog%7D%2Fseattle.master%22%20%2F%26gt%3B%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-42023%22%20slang%3D%22en-US%22%3ERe%3A%20Apply%20Provisioning%20Template%20with%20branding%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-42023%22%20slang%3D%22en-US%22%3E%3CP%3E%40Hi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F31079%22%20target%3D%22_blank%22%3E%40Debayo%20Graham%3C%2FA%3E%2C%20What%20did%20you%20use%20for%20branding%3F%3C%2FP%3E%3CP%3EIf%20you%20use%20a%20composed%20look%20then%20it%20can%20be%20includd%20in%20the%20template..%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20general%20I%20find%20this%20the%20easiest%20to%20srto%20out%20uisng%20PnP%20PowerShell%20(I'm%20not%20suggesting%20that%20you%20use%20PnP%20Powershell%20for%20your%20end%20solution%2C%20but%20to%20test%20the%20tempaltes%20it%20does%20help%20as%20you%20can%20very%20quickly%20add%20more%20or%20less%20options)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGet-PnPProvisioingTemplate%20witht%20he%20switch%26nbsp%3B-PersistBrandingFiles%20included%20and%20then%3C%2FP%3E%3CP%3EApply-PnPProvisioningTemplate%20will%20include%20the%20composed%20look.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Contributor

Hi folks. Lets say I used partner pack to create a template from a site collection that has some branding done to it. How dow I create a new site collection with said template with branding applied as well? I think i am able to create the site collection with all the list and so forth but I am not so sure abt the branding part. If any one can point me in the right direction that would be good. Thanks in advance

4 Replies
Highlighted

@Hi @Debayo Graham, What did you use for branding?

If you use a composed look then it can be includd in the template..

 

In general I find this the easiest to srto out uisng PnP PowerShell (I'm not suggesting that you use PnP Powershell for your end solution, but to test the tempaltes it does help as you can very quickly add more or less options)

 

Get-PnPProvisioingTemplate witht he switch -PersistBrandingFiles included and then

Apply-PnPProvisioningTemplate will include the composed look.

 

 

Highlighted

Pieter is right alternative you can upload a alternative css file in the template.

 <pnp:WebSettings RequestAccessEmail="" NoCrawl="false" WelcomePage="SitePages/Home.aspx" SiteLogo="" AlternateCSS="" MasterPageUrl="{masterpagecatalog}/seattle.master" CustomMasterPageUrl="{masterpagecatalog}/seattle.master" />
Highlighted

Thanks again for your response, will be doing some more reading on composed look and the povisioning engine and report my solution

Highlighted

Good Day,

 

Also I notice that when i extract the template using powershell I get a .pnp file. This .pnp file contains my .master file and some other stuff, i also think the xml makes reference to all my layout.aspx files. In my testing ApplyProvisioningTemplate() does not upload these files to the new site collection (layout.aspx files). If it should, please let me kow what i did wrong or how i can uppload these files. The error i get is

 

Value cannot be null. Parameter name: stream

 

I think this occures when its processing one of my layour files referenced in the .pnp file