SOLVED
Home

Button/link to create news post based on template

%3CLINGO-SUB%20id%3D%22lingo-sub-869963%22%20slang%3D%22en-US%22%3EButton%2Flink%20to%20create%20news%20post%20based%20on%20template%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-869963%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20created%20a%20website%20template%20stored%20in%20the%20folder%20templates%20in%20library%20website%20pages%20in%20order%20create%20news%20based%20on%20this%20template.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EVia%20New%20%26gt%3B%20page%20I%20can%20select%20the%20template%20manually.%3C%2FP%3E%3CP%3EIn%20order%20to%20have%20an%20easy%20handling%20for%20users%20I%20want%20to%20create%20a%20button%20or%20link%20(e.g.%20in%20Teams)%20to%20create%20a%20new%20news%20post%20based%20on%20this%20dedicated%20template%20directly.%20How%20can%20I%20achieve%20that%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBest%20regards%3C%2FP%3E%3CP%3EStefan%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-869963%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-871653%22%20slang%3D%22en-US%22%3ERe%3A%20Button%2Flink%20to%20create%20news%20post%20based%20on%20template%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-871653%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F193642%22%20target%3D%22_blank%22%3E%40Stefan%20Gille%3C%2FA%3E%26nbsp%3BWhy%20not%20create%20a%20bot%20with%20a%20button%3F%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Fconcepts%2Fbots%2Fbots-create%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Fconcepts%2Fbots%2Fbots-create%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-871814%22%20slang%3D%22en-US%22%3ERe%3A%20Button%2Flink%20to%20create%20news%20post%20based%20on%20template%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-871814%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F410289%22%20target%3D%22_blank%22%3E%40SinhaKislay%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20reply.%20The%20bot%20is%20a%20solution%20for%20the%20button%2C%20but%20I%20still%20struggle%20creating%20a%20SharePoint%20page%20based%20on%20a%20template.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20post%20was%20a%20bit%20misleading%2C%20I%20believe.%20I%20did%20not%20create%20website%20templates%20but%20templates%20for%20web%20pages%20stored%20in%20library%20website%20pages.%3C%2FP%3E%3CP%3EHow%20can%20I%20create%20a%20webpage%20with%20a%20dedicated%20template%20without%20user's%20intervention%2Fchoice%20in%20between%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20and%20best%20regards%3C%2FP%3E%3CP%3EStefan%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-873991%22%20slang%3D%22en-US%22%3ERe%3A%20Button%2Flink%20to%20create%20news%20post%20based%20on%20template%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-873991%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F193642%22%20target%3D%22_blank%22%3E%40Stefan%20Gille%3C%2FA%3E%26nbsp%3Byou%20can%20create%20if%20you%20are%20using%20Publishing%20page%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fblogs.msdn.microsoft.com%2Fsridhara%2F2008%2F06%2F21%2Fcreate-and-publish-web-pages-in-publishing-sharepoint-sites-programmatically%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fblogs.msdn.microsoft.com%2Fsridhara%2F2008%2F06%2F21%2Fcreate-and-publish-web-pages-in-publishing-sharepoint-sites-programmatically%2F%3C%2FA%3E%26nbsp%3Band%20also%20you%20can%20set%20PageLayout%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAre%20you%20using%20Modern%20pages%20then%20we%20have%20to%20use%20PnP%20I%20guess%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-874013%22%20slang%3D%22en-US%22%3ERe%3A%20Button%2Flink%20to%20create%20news%20post%20based%20on%20template%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-874013%22%20slang%3D%22en-US%22%3EYes%2C%20indeed%20I%20am%20using%20modern%20pages.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-874020%22%20slang%3D%22en-US%22%3ERe%3A%20Button%2Flink%20to%20create%20news%20post%20based%20on%20template%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-874020%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F193642%22%20target%3D%22_blank%22%3E%40Stefan%20Gille%3C%2FA%3E%26nbsp%3Bsorry%20cannot%20tell%20exactly%20how%20to%20do%20but%20modern%20pages%20can%20be%20created%20programatically%20and%20a%20page%20layout%20can%20be%20decided%2C%20a%20very%20detailed%20explanation%20on%20what%20can%20be%20done%20or%20not%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fsolution-guidance%2Fmodern-experience-customizations-customize-pages%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fsolution-guidance%2Fmodern-experience-customizations-customize-pages%3C%2FA%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.sharepointpals.com%2Fpost%2Fhow-to-create-a-modern-pages-programmatically-in-sharepoint-office-365-using-patterns-and-practice-officedevpnp%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.sharepointpals.com%2Fpost%2Fhow-to-create-a-modern-pages-programmatically-in-sharepoint-office-365-using-patterns-and-practice-officedevpnp%2F%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-881954%22%20slang%3D%22en-US%22%3ERe%3A%20Button%2Flink%20to%20create%20news%20post%20based%20on%20template%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-881954%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F410289%22%20target%3D%22_blank%22%3E%40SinhaKislay%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20guidance%20from%20Daniel%20Estelius%20helped%20me%20a%20lot%20to%20create%20a%20SharePoint%20webpage%20via%20Flow%20based%20on%20a%20template.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22http%3A%2F%2Fwww.sites.se%2F2018%2F08%2Fsharepoint-modern-pages-microsoft-flow%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fwww.sites.se%2F2018%2F08%2Fsharepoint-modern-pages-microsoft-flow%2F%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20the%20trigger%20I%20decided%20to%20use%20a%20Microsoft%20Form%20embedded%20in%20Teams.%20This%20also%20allows%20to%20ask%20you%20user%20for%20some%20specific%20information%20for%20the%20creation%20of%20the%20page.%3C%2FP%3E%3CP%3EBut%20I%20will%20check%20the%20creation%20of%20a%20bot%20for%20future%20usage%20as%20well.%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20support.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBest%20regards%3C%2FP%3E%3CP%3EStefan%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-882012%22%20slang%3D%22en-US%22%3ERe%3A%20Button%2Flink%20to%20create%20news%20post%20based%20on%20template%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-882012%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F193642%22%20target%3D%22_blank%22%3E%40Stefan%20Gille%3C%2FA%3E%26nbsp%3BGlad%20that%20you%20could%20solve%20the%20problem%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Stefan Gille
New Contributor

I have created a website template stored in the folder templates in library website pages in order create news based on this template.

 

Via New > page I can select the template manually.

In order to have an easy handling for users I want to create a button or link (e.g. in Teams) to create a new news post based on this dedicated template directly. How can I achieve that?

 

Best regards

Stefan

 

 

7 Replies

@SinhaKislay 

Thank you for your reply. The bot is a solution for the button, but I still struggle creating a SharePoint page based on a template.

 

My post was a bit misleading, I believe. I did not create website templates but templates for web pages stored in library website pages.

How can I create a webpage with a dedicated template without user's intervention/choice in between?

 

Thank you and best regards

Stefan

@Stefan Gille you can create if you are using Publishing page https://blogs.msdn.microsoft.com/sridhara/2008/06/21/create-and-publish-web-pages-in-publishing-shar... and also you can set PageLayout

 

Are you using Modern pages then we have to use PnP I guess?

Yes, indeed I am using modern pages.

@Stefan Gille sorry cannot tell exactly how to do but modern pages can be created programatically and a page layout can be decided, a very detailed explanation on what can be done or not

https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/modern-experience-customizations-c...

https://www.sharepointpals.com/post/how-to-create-a-modern-pages-programmatically-in-sharepoint-offi...

Solution

@SinhaKislay 

This guidance from Daniel Estelius helped me a lot to create a SharePoint webpage via Flow based on a template.

 

http://www.sites.se/2018/08/sharepoint-modern-pages-microsoft-flow/

 

For the trigger I decided to use a Microsoft Form embedded in Teams. This also allows to ask you user for some specific information for the creation of the page.

But I will check the creation of a bot for future usage as well.

Thank you for your support.

 

Best regards

Stefan

@Stefan Gille Glad that you could solve the problem

Related Conversations
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
13 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
22 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies
Edge insider Dev bypasses IE mode website list
HotCakeX in Enterprise on
4 Replies