Forum Discussion
LadislavStupak
Mar 21, 2022Brass Contributor
Script Editor on Modern Communication Site SharePoint 2019 on Premise
Dear Ladies and Gentlemen, How can I add Script Editor on Modern Communication Site SharePoint 2019 on Premise? Thank you. Ladislav Stupak
- Mar 30, 2022In the site collection with modern "Communication site" as root Website template in SharePoint 2019 On-Premise it is not possible to use Script Editor.
In the site collection with modern "Team site" as root Website template in SharePoint 2019 On-Premise it is possible to use Script Editor.
So the solution has been the creation of new site collection with modern "Team site" as root Website template.
In such website is possible to use Three-state workflow on the lists. This workflow uses classic Task list. And in this Task list has been possible to add Script Editor to the dialog pages to eliminate the "Show more" link and displaying all fields of the list while opening the dialog page.
LadislavStupak
Mar 21, 2022Brass Contributor
Dear Juan and Joel,
thank you for your responses.
I have to use the Three-state workflow. which needs a task list. The task list has this link "Show more" in the dialog pages. I have to eliminate this link and show all fields of the task list at once.
I have also executed following PowerShell Script:
(Get-SPSite -Identity "https://your-host/sites/modern-site").DenyPermissionsMask = [Microsoft.SharePoint.SPBasePermissions]::EmptyMask
which I have found here:
https://support.shortpoint.com/support/solutions/articles/1000272241-prerequisite-2-enable-scripting-capabilities-with-powershell-sharepoint-2019-
But I still do not see the Script Editor under available Webparts in the Media and content block.
When I create a site sollection with the Team site template, then I can see the Script Editor in the task list dialog page.
There must be some way how to see it also in the Communication site.
Maybe people in Microsoft knows what to set.
Thank you for help in advance.
With best regards
Ladislav Stupak
thank you for your responses.
I have to use the Three-state workflow. which needs a task list. The task list has this link "Show more" in the dialog pages. I have to eliminate this link and show all fields of the task list at once.
I have also executed following PowerShell Script:
(Get-SPSite -Identity "https://your-host/sites/modern-site").DenyPermissionsMask = [Microsoft.SharePoint.SPBasePermissions]::EmptyMask
which I have found here:
https://support.shortpoint.com/support/solutions/articles/1000272241-prerequisite-2-enable-scripting-capabilities-with-powershell-sharepoint-2019-
But I still do not see the Script Editor under available Webparts in the Media and content block.
When I create a site sollection with the Team site template, then I can see the Script Editor in the task list dialog page.
There must be some way how to see it also in the Communication site.
Maybe people in Microsoft knows what to set.
Thank you for help in advance.
With best regards
Ladislav Stupak
Matthias_Glubrecht
Microsoft
Mar 27, 2022LadislavStupak, like Joel Rodrigues already wrote, the SharePoint Script Editor can not be used on modern pages, but there is a "modern" script editor web part that you can use, if it is absolutely necessary. Joel posted the link to that web part.
The change you have made only applies to classic pages.
Kind regards,
Matthias
- LadislavStupakMar 30, 2022Brass ContributorIn the site collection with modern "Communication site" as root Website template in SharePoint 2019 On-Premise it is not possible to use Script Editor.
In the site collection with modern "Team site" as root Website template in SharePoint 2019 On-Premise it is possible to use Script Editor.
So the solution has been the creation of new site collection with modern "Team site" as root Website template.
In such website is possible to use Three-state workflow on the lists. This workflow uses classic Task list. And in this Task list has been possible to add Script Editor to the dialog pages to eliminate the "Show more" link and displaying all fields of the list while opening the dialog page.