NoScript (DenyAddAndCustomizePages) support in modern sites

%3CLINGO-SUB%20id%3D%22lingo-sub-73693%22%20slang%3D%22en-US%22%3ENoScript%20(DenyAddAndCustomizePages)%20support%20in%20modern%20sites%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-73693%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3C%2FP%3E%3CP%3EI%20was%20just%20wanting%20some%20confirmation%20on%20support%20for%20disabling%20NoScript%20(DenyAddAndCustomizePages)%20with%20modern%20sites.%20It%20does%20work%20but%20want%20to%20confirm%20it's%20supported%20to%20do%20this%20and%20won't%20suddenly%20get%20disabled.%20The%20reason%20I%20want%20to%20do%20it%20is%20to%20implement%20a%20solution%20that%20adds%20a%20Custom%20Action%20to%20a%20document%20library.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere%20seems%20to%20be%20conflicting%20information%20in%20the%20same%20set%20of%20MSDN%20articles.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fmsdn.microsoft.com%2Fen-us%2Fpnp_articles%2Fmodern-experience-customizations-customize-sites%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fmsdn.microsoft.com%2Fen-us%2Fpnp_articles%2Fmodern-experience-customizations-customize-sites%3C%2FA%3E%3C%2FP%3E%3CP%3EThis%20page%20above%20talsk%20about%20NoScript%20and%20says%20you%20%3CSTRONG%3ECAN'T%3C%2FSTRONG%3E%20disable%20it%3A%3CBR%20%2F%3E%22The%20impact%20of%20noscript%20is%20the%20same%20for%20%22modern%22%20or%20%22classic%22%20sites%2C%20the%20only%20difference%20with%20%22modern%22%20sites%20is%20that%20you%20cannot%20turn%20off%20%22noscript%22%20whereas%20this%20is%20possible%20for%20%22classic%22%20sites.%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fmsdn.microsoft.com%2Fen-us%2Fpnp_articles%2Fmodern-experience-customizations-customize-lists-and-libraries%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fmsdn.microsoft.com%2Fen-us%2Fpnp_articles%2Fmodern-experience-customizations-customize-lists-and-libraries%3C%2FA%3E%3C%2FP%3E%3CP%3EThe%26nbsp%3Bpage%20above%20talks%20about%20NoScript%20and%20says%20you%20%3CSTRONG%3ECAN%3C%2FSTRONG%3E%20disable%20it%3A%3CBR%20%2F%3E%22You%20however%20can%20disable%20NoScript%20in%20%22modern%22%20sites%20to%20achieve%20the%20same%20behavior%20for%20%22modern%22%20list%20and%20libraries%20across%20%22classic%22%20and%20%22modern%22%20sites.%22%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EAs%20I%20said%20it%20does%20seem%20to%20allow%20it%20at%20the%20moment.%20Any%20help%20clarifying%20which%20is%20correct%20would%20be%20great.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-73756%22%20slang%3D%22en-US%22%3ERe%3A%20NoScript%20(DenyAddAndCustomizePages)%20support%20in%20modern%20sites%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-73756%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20for%20the%20info%20-%20looking%20forward%20to%20the%20extra%20developer%20options.%20%26nbsp%3BThe%20action%20i'm%20adding%20is%20just%20a%26nbsp%3Blink%20to%20a%20seperate%20website%20and%20needs%20to%20appear%20in%20the%20document%20menu%20(EditControlBlock).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20it%20working%20fine%20on%20modern%20sites%20but%20only%20if%20I%20disable%20NoScript.%20The%20page%20you%20suggested%20is%20the%20one%20I%20used%20to%20do%20this%20and%20it%20does%20have%20a%20note%20about%20NoScript%20so%20seems%20to%20confirm%20this.%20My%20confusion%20is%20that%20other%20pages%20within%20the%20same%20set%20of%20articles%20suggest%20changing%20NoScript%20is%20not%20possible%20on%20Modern%20sites%20as%20if%20it's%20not%20suported%20so%20was%20just%20looking%20for%20clarification%20on%20if%20I%20should%20be%20using%20it.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20is%20the%20comment%20from%20the%20list%20customisation%20page%20you%20posted%3A%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CBLOCKQUOTE%3E%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%3CP%3E%3CEM%3EThe%20above%20custom%20actions%20show%20up%20in%20%22modern%22%20lists%20and%20libraries%20only%20when%20you%20are%20in%20classic%20sites%20with%20%22modern%22%20UI%20enabled%2C%20while%20they%20by%20default%20don't%20show%20up%20in%20%22modern%22%20sites%20as%20it's%20not%20possible%20to%20add%20user%20custom%20actions%20to%20%22modern%22%20sites%20because%20they've%20the%20NoScript%20option%20enabled.%20You%20however%20can%20disable%20NoScript%20in%20%22modern%22%20sites%20to%20achieve%20the%20same%20behavior%20for%20%22modern%22%20list%20and%20libraries%20across%20%22classic%22%20and%20%22modern%22%20sites.%3C%2FEM%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-73710%22%20slang%3D%22en-US%22%3ERe%3A%20NoScript%20(DenyAddAndCustomizePages)%20support%20in%20modern%20sites%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-73710%22%20slang%3D%22en-US%22%3E%3CP%3EWhat%20should%20this%20Custom%20Action%20do%20and%20how%20should%20it%20appear%3F%20In%20the%20%22ribbon%22%20or%20ECB%20menu%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20see%20the%20supported%20customizations%20for%20lists%20and%20libraries%20here%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fmsdn.microsoft.com%2Fen-us%2Fpnp_articles%2Fmodern-experience-customizations-customize-lists-and-libraries%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fmsdn.microsoft.com%2Fen-us%2Fpnp_articles%2Fmodern-experience-customizations-customize-lists-and-libraries%3C%2FA%3E%20without%20modifying%20NoScript%20tag.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFurthermore%2C%20there%20are%20some%20SPFx%20Extensions%20coming%20to%20modern%20team%20sites%20(currently%20in%20dev%20preview)%20that%20lets%20you%20create%20user%20custom%20actions%20on%20site%20collection%20level%20(and%20more)%2C%20custom%20actions%20and%20JSLink%20equivalent%20in%20lists%20and%20libraries%20and%20other%20features%20as%20well.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Hi

I was just wanting some confirmation on support for disabling NoScript (DenyAddAndCustomizePages) with modern sites. It does work but want to confirm it's supported to do this and won't suddenly get disabled. The reason I want to do it is to implement a solution that adds a Custom Action to a document library.

 

There seems to be conflicting information in the same set of MSDN articles.

 

https://msdn.microsoft.com/en-us/pnp_articles/modern-experience-customizations-customize-sites

This page above talsk about NoScript and says you CAN'T disable it:
"The impact of noscript is the same for "modern" or "classic" sites, the only difference with "modern" sites is that you cannot turn off "noscript" whereas this is possible for "classic" sites."

 

 

https://msdn.microsoft.com/en-us/pnp_articles/modern-experience-customizations-customize-lists-and-l...

The page above talks about NoScript and says you CAN disable it:
"You however can disable NoScript in "modern" sites to achieve the same behavior for "modern" list and libraries across "classic" and "modern" sites."


As I said it does seem to allow it at the moment. Any help clarifying which is correct would be great.

 

Thanks

2 Replies
Highlighted

What should this Custom Action do and how should it appear? In the "ribbon" or ECB menu?

 

You can see the supported customizations for lists and libraries here https://msdn.microsoft.com/en-us/pnp_articles/modern-experience-customizations-customize-lists-and-l... without modifying NoScript tag.

 

Furthermore, there are some SPFx Extensions coming to modern team sites (currently in dev preview) that lets you create user custom actions on site collection level (and more), custom actions and JSLink equivalent in lists and libraries and other features as well.

Highlighted

Thanks for the info - looking forward to the extra developer options.  The action i'm adding is just a link to a seperate website and needs to appear in the document menu (EditControlBlock).

 

I have it working fine on modern sites but only if I disable NoScript. The page you suggested is the one I used to do this and it does have a note about NoScript so seems to confirm this. My confusion is that other pages within the same set of articles suggest changing NoScript is not possible on Modern sites as if it's not suported so was just looking for clarification on if I should be using it.

 

This is the comment from the list customisation page you posted: 

 


The above custom actions show up in "modern" lists and libraries only when you are in classic sites with "modern" UI enabled, while they by default don't show up in "modern" sites as it's not possible to add user custom actions to "modern" sites because they've the NoScript option enabled. You however can disable NoScript in "modern" sites to achieve the same behavior for "modern" list and libraries across "classic" and "modern" sites.