Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Meta Issue:#1870944: [Meta] Mobile friendly admin pages
Problem/Motivation
Comment delete and edit to open in overlay, these page need to be similar to node/user edit or delete.
Admin URL: comment/%/delete, comment/%/edit
Proposed resolution
To be determined.
Remaining tasks
To be determined.
Comment | File | Size | Author |
---|---|---|---|
#14 | overlay_settings.png | 8.88 KB | adammalone |
#8 | Screenshot from 2013-02-09 13:02:52.png | 6.67 KB | rli |
#4 | 1902874-before.png | 69.03 KB | plopesc |
#4 | 1902874-before-2.png | 64.14 KB | plopesc |
#4 | 1902874-after.png | 63.38 KB | plopesc |
Comments
Comment #1
plopescAttachiog patch that includes comment edit and delete pages as admin pages.
Comment #2
plopescRe-rolling patch with correct indentation.
Sorry
Comment #3
rteijeiro CreditAttribution: rteijeiro commentedHi plopesc,
Could you include screenshots before and after the patch apply, please?
It would be great to reviewers in order to find what has changed with your patch.
Also please, review the patch indentation, there is a wrong indentation in the return sentence ;)
Thanks :)
Comment #4
plopescAttaching screenshots.
All them were taken after clicking on edit and delete links in comment page.
Firstly edit and delete comment pages without patch.
Now, same pages after patch applied. Both are opened in overlay:
Regards
Comment #5
rteijeiro CreditAttribution: rteijeiro commentedGreat, the patch works as shown in the screenshots.
Well done!
Comment #6
Dries CreditAttribution: Dries commentedThis makes sense to me.
Comment #7
catchHmm it doesn't really make sense to me to be honest.
Users can post and edit comments (and sometimes only do that) on lots of sites, and that's not administrative when they're editing their own comments. In this case the overlay would be shown only for this particular action and never for anything else.
We have a setting for the node form for each node type, why not the same for comments? Or have a global setting for comments but inherit the node type settings based on the comment bundle?
The overlay is disabled on small screen sizes at the moment too, so most mobile users won't see it.
Comment #8
rliHi catch,
Have applied the patch and it seems to work the way you want.
Since we can set the permission for different roles to see the overlay, authenticated user will not be able to see the overlay unless we change the permission. Please check the screenshot.
Been talking to JohnAlbin, we think adding option to global setting and node settings will make user confused. i.e. what if we have permission disabled but the option for displaying overlay ticked in node? Or we have to set default value according to the permission?
Happy to discuss with you.
rli
Comment #9
Bojhan CreditAttribution: Bojhan commentedYhea, I dont think this is a really good idea - comments is not really a site building task. For many cases, it will be a user who only sees the front-end
Comment #10
plopescI think only people with admin overlay permission will access to the comment edit overlay feature. As occurs with nodes.
Managing comments could be another site building task, site admins can manage and moderate comments if desired.
Regards
Comment #11
rliagree. This patch does make sense to me.
Comment #12
rliComment #13
catchStill needs more discussion and possibly testing.
While I have some administrative permissions on Drupal.org, I only ever edit my own comments to fix typos etc. and having those appear in the overlay would irritate me no end.
Comment #14
adammaloneWould that then be a case for users being able to (should they have requisite permissions) disable overlay.
If I am reading your comments in #7 and #13 correctly catch:
In addition to this, if this is to go ahead, I propose:
These additional options at least allow users who are not partial to using overlay in comments to opt out.
Comment #15
rliYes, I agree with giving user options to disable overlay, as we already have this option in user/*/edit page.
But if we want to separate the settings for node and comment, I think we also need to do this to all of the modules that have admin page. In this case I suppose there would be a list of overlay settings in the page, which may make user confused?
Comment #16
andypostOnce we introduce settings per-user then should be sensible global defaults
Otoh for none-mobile visitors I'd prefer to use modal dialog to edit comments and there's issue for confirmations #1842036: [META] Convert all confirm forms to use modal dialog
Comment #17
andypostNow we have no overlay in core, so probably issue could be closed #2088121: Remove Overlay
Comment #18
g_miric CreditAttribution: g_miric commentedOr we could use ajax modal dialog.
Comment #19
andypostsure, for delete it makes sense but comment-edit seems better to have a separate page
Comment #20
swentel CreditAttribution: swentel commentedYeah. Overlay is gone, the confirm delete can go in #1842036: [META] Convert all confirm forms to use modal dialog