Using the Hero web part in Templates

%3CLINGO-SUB%20id%3D%22lingo-sub-1676135%22%20slang%3D%22en-US%22%3EUsing%20the%20Hero%20web%20part%20in%20Templates%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1676135%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20are%20keen%20to%20move%20our%20templates%20to%20the%20new%20modern%20theme%20and%20make%20use%20of%20the%20amazing%20hero%20web%20part.%20We%20have%20found%20an%20issue%20when%20we%20save%20these%20sites%20as%20a%20template%20and%20use%20them%20to%20create%20a%20new%20site%2C%20the%20images%20and%20links%20on%20the%20hero%20web%20part%20do%20not%20point%20to%20the%20%E2%80%9Cnew%20site%E2%80%9D%20that%20has%20been%20created%20from%20the%20template%20they%20point%20to%20the%20%E2%80%9Cold%20site%E2%80%9D%20that%20was%20used%20to%20save%20the%20.STP%20file%20i.e.%20the%20site%20where%20all%20the%20others%20will%20be%20cloned%20from.%26nbsp%3B%20%26nbsp%3BAll%20our%20templates%20have%20things%20like%20a%20doc%20library%20and%20various%20custom%20lists%20used%20for%20issues%2C%20risks%2C%20etc.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EHow%20we%20use%20templates%3A%3C%2FSTRONG%3E%20We%20have%20a%20different%20template%20connected%20to%20a%20type%20of%20project%20for%20example%20an%20Agile%20project%20vs%20a%20Waterfall%20project%20or%20a%20construction%20project%20etc.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20understand%20that%20we%20might%20need%20to%20run%20a%20script%20at%20the%20time%20of%20site%20creating%20the%20site%20to%20re%20point%20everything%20but%20were%20hoping%20to%20avoid%20a%20%E2%80%98code%E2%80%99%20fix%20to%20this%20issue.%20Any%20ideas%20would%20be%20greatly%20appreciated.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20see%20screen%20shot%20for%20more%20info.%20%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1676135%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1679972%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20the%20Hero%20web%20part%20in%20Templates%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1679972%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F796531%22%20target%3D%22_blank%22%3E%40SteveTz%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%2C%20I'm%20happy%20to%20be%20corrected%20if%20anyone%20knows%20different%2C%20but%20it%20was%20my%20understanding%20that%20the%20use%20of%20templates%20for%20SP%20sites%20was%20considered%20more%20for%20the%20older%20classic%20sites%2C%20and%20didn't%20work%20so%20well%20with%20modern%20sites.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere%20are%20also%20lots%20of%20great%20templates%20that%20you%20can%20upload%20to%20your%20tenant%20via%20the%20SharePoint%20Look%20book%20which%20you%20can%20find%20here%20-%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Flookbook.microsoft.com%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Flookbook.microsoft.com%2F%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1681380%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20the%20Hero%20web%20part%20in%20Templates%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1681380%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F616707%22%20target%3D%22_blank%22%3E%40PeterRising%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20your%20reply%2C%20i'll%20have%20a%20play%20with%20the%20new%20look%20book%20templates.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ES%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

We are keen to move our templates to the new modern theme and make use of the amazing hero web part. We have found an issue when we save these sites as a template and use them to create a new site, the images and links on the hero web part do not point to the “new site” that has been created from the template they point to the “old site” that was used to save the .STP file i.e. the site where all the others will be cloned from.   All our templates have things like a doc library and various custom lists used for issues, risks, etc. 

 

How we use templates: We have a different template connected to a type of project for example an Agile project vs a Waterfall project or a construction project etc. 

 

We understand that we might need to run a script at the time of site creating the site to re point everything but were hoping to avoid a ‘code’ fix to this issue. Any ideas would be greatly appreciated.

 

Please see screen shot for more info.  

3 Replies

@SteveTz 

 

Hi, I'm happy to be corrected if anyone knows different, but it was my understanding that the use of templates for SP sites was considered more for the older classic sites, and didn't work so well with modern sites.  

 

There are also lots of great templates that you can upload to your tenant via the SharePoint Look book which you can find here - https://lookbook.microsoft.com/ 

@PeterRising 

 

Thanks for your reply, i'll have a play with the new look book templates. 

 

S

@SteveTz  Yea, Site Templates aren't supported in modern SharePoint Sites. The only supported path forward is to create PnP Provisioning Templates. Unfortunately, this does require some technical skills and some up front work. You can automate some of it by implementing them with Azure Functions + PnP PowerShell and Site Designs. 

Please see documentation 
https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/site-design-trigger-flow-t...