[v2] Proposal: set custom_edit_url to 'null' to disable `Edit this Page` button
See original GitHub issueProposing this feature after approval for filing by @yangshun.
Proposal
Add a frontmatter boolean to allow per-page disabling of the Edit this Page button. E.g.
no_edit_button: true
Default value would be
false
Why?
It’s not always possible to generate a correct custom_edit_url like in this real-life example from the Pester website
- additional markdown is generated from a remote source
- for these pages the global
editUrlsetting cannot be used - not all of these remote sources can be edited/resolved
- it is therefore impossible to create a page-specific
custom_edit_url - leading to 404 errors when pressing the
Edit this Pagebutton for these type of pages
The current IRL workaround is to disable all edit buttons, very suboptimal
How would this solve it?
Users would be able to disable the Edit this Page button on a per-page basis.
This should also cover all future use-cases.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Disable "Edit" Button that appear in more selection of tab bar ios
You had to say that none of your view controllers is customizable. Then the edit button disappears. Please look up the docs. tabBarController....
Read more >Disable edit button on Multi Row Variable Set - ServiceNow
I would like to disable the edit button(s) on a Multi Row Variable Set. I have not been able to find any way...
Read more >Disable the Edit Button for Plan Type Grouping on Self ...
Go to Navigator > Configuration > Sandboxes. · Enter your sandbox. · Go to Me > Benefits > Enrollment. · On the Settings...
Read more >Is there a way to disable the "Edit" buttons when the Grid is in ...
I have set a "GridIsDirty" variable when I'm in Edit mode to take care of this for edits. If it's not possible, do...
Read more >Is there any way to disable Editor form buttons? - DataTables
I have the following code, but want different 'edit' buttons to be ... set buttons for remove (only other choice) } else {...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

PR welcome.
Thanks for thinking about this. I would personally prefer to NOT use swizzling for this and make this (the
nullsuggestion) a core feature. This way we can benefit of future releases without any changes.I will ask for a PR, thanks ❤️