Forum Discussion
Create a button with new news post linked to templates
- Mar 01, 2023
THOREX Use link in below format to create a new news post:
https://contoso.sharepoint.com/sites/siteName/_layouts/15/CreatePageFromTemplate.aspx?source=/sites/siteName/&promotedState=1Also, you can hide New option in site pages library using JSON view formatting:
{ "commandBarProps": { "commands": [ { "key": "new", "hide": true } ] } }Output:
Documentation: Command bar customization syntax reference
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
For SharePoint/Power Platform blogs, visit: Ganesh Sanap Blogs
THOREX Use link in below format to create a new news post:
https://contoso.sharepoint.com/sites/siteName/_layouts/15/CreatePageFromTemplate.aspx?source=/sites/siteName/&promotedState=1
Also, you can hide New option in site pages library using JSON view formatting:
{
"commandBarProps": {
"commands": [
{
"key": "new",
"hide": true
}
]
}
}
Output:
Documentation: Command bar customization syntax reference
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
For SharePoint/Power Platform blogs, visit: Ganesh Sanap Blogs