question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[v2] Proposal: set custom_edit_url to 'null' to disable `Edit this Page` button

See original GitHub issue

Proposing 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

  1. additional markdown is generated from a remote source
  2. for these pages the global editUrl setting cannot be used
  3. not all of these remote sources can be edited/resolved
  4. it is therefore impossible to create a page-specific custom_edit_url
  5. leading to 404 errors when pressing the Edit this Page button 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:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
endilieycommented, Dec 30, 2019

PR welcome.

0reactions
bravo-kernelcommented, Dec 30, 2019

Thanks for thinking about this. I would personally prefer to NOT use swizzling for this and make this (the null suggestion) a core feature. This way we can benefit of future releases without any changes.

I will ask for a PR, thanks ❤️

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found