code4romania / code4romania/website-factory

Add an `Edit button` overlay on pages when a user is logged in as an admin/editor

Open
#478 0 comments 0 reactions 1 assignee Claimed by @overeha View on GitHub
enhancement :rocket:
Dominant language
PHP
Stars
26
Forks
18
Avg merge
1m
Merged PRs (30d)
14

Description

**Is your feature request related to a problem? Please describe.**
When having many (similar) pages on the site, it may not be easy to go into the admin, locate, and edit the exact page you're looking for. This is especially true considering that the slug has no reference to the ID.

**Describe the solution you'd like**
An apparent visual cue should appear on all public pages in a place that does not disturb the user once an admin is logged in.
Other implementations of this feature show an edit button (usually in the bottom-right corner of the page) that takes the user to a screen to edit that page.

**Describe alternatives you've considered**
This can be mitigated with an improved search functionality, which would make the page a lot easier to find by name/slug/etc. But better discoverability is more challenging than allowing a user who is already logged in to the site to go to the edit screen of that page directly from the public website.

**Additional context**
Implementation of this feature in Google Forms
![Screenshot 2023-10-25 at 15 50 05](https://github.com/code4romania/website-factory/assets/2820084/e78c7e4c-543e-489d-b1b8-d4ef60cb011f)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.