Comments (8)
@finanalyst, update: release 1.0.11 solved the refresh for real.
from grav-frontend-edit-button.
Thanks @enovision , I've tested it on two sites and get mixed results (one the button never shows, the other the button stays visible after logout). I can share admin access with you of one site for testing if that helps, please DM me in the Grav Slack room (https://getgrav.org/slack) or email me paul at hibbittsdesign.org
The plugin is really an awesome idea, and I am happy to try to help out where I can!
UPDATE: I think I've got the expected behavior now, perhaps a cache issue on my end. Ah, perhaps it was because I had multiple Grav site Admin's logged in at the same time in one Browser window? Is it a specific check to one site or any Grav Admin? The good news is that things seem to be working!
from grav-frontend-edit-button.
@paulhibbitts, it is checking for admin cookies on the same domain. So if you have more admins open to different domains, they would all have a different admin cookie. It is domain (url) dependent how the cookie is set.
Good news that is seems to work now. Keep me posted if behavior might change unexpectedly.
from grav-frontend-edit-button.
Thanks for the super-useful plugin @enovision ! I seem to have the same issue, the Edit button is visible for all users incl. non-authenticated. Is there a setting I need to adjust? I've set Only visible after login
to enabled as well.
from grav-frontend-edit-button.
Same issue here, I had to disable the plugin when not actively working on my website because it will show to everyone, even non logged in users.
from grav-frontend-edit-button.
@finanalyst, you are absolutely right about the editProtect
. The issue you address is much more complicated then I can handle here with this plugin. It is about users/groups and content authoring authorizations. It is a deep wish of a lot of Grav CMS fans, so I must put you on hold on this issue.
I have prepared a new version however that solves the button show and not logged in issue. The button now disappears when you log out. Furthermore is the button now optional shown even when not logged in (don't know why, but someone asked me this).
Also is the auto updating of the page tab when losing and regaining focus now optional (also a user request).
You can modify these new options in the plugin settings.
from grav-frontend-edit-button.
Thanks so much @enovision ! I just tweeted about one application of your awesome plugin too
UPDATE: Sorry @enovision but there still seems to be an issue with the edit button being visible when no users are logged in. It seemed to work at first, but after several Grav sessions AND logging out the edit button now remains visible (even when logged out and no Grav Admin open). Any ideas?
Happy to test anything that is helpful.
from grav-frontend-edit-button.
@paulhibbitts, I have created release 1.0.12 that surely should make the button disappear. What is does now, it checks if the '-authenticated' cookie is set, if yes it will build the button from the 'twig' template, otherwise it will leave it empty (''). Maybe you could test it if you have the same result as I have, that the button really is gone as expected.
from grav-frontend-edit-button.
Related Issues (20)
- button quirks HOT 1
- Make auto-refresh optional HOT 1
- Disabling (hiding) icon no longer works HOT 3
- Edit Button not injected when requiresAuth is true HOT 4
- Edit from https site does not work HOT 5
- Install instructions incorrect. HOT 1
- no icon showing HOT 9
- Edit button showing when not connected
- Fontend-edit button reappears when switching languages HOT 3
- Button still appears after logging out HOT 3
- Possibility to integrate with Breadcrumb?
- Wrong installation link for GPM HOT 1
- Button not showing with 'session.split: false'
- Plugin can no longer be disabled with Grav 1.7 HOT 2
- Edit path is hardcoded for 'admin' so does not work if using custom admin location HOT 4
- Some issues in edit ,if we enabled multilanguage HOT 2
- Feature suggestions HOT 6
- custom positon in the page? HOT 2
- wrong indentation in languages.yaml crashing grav HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grav-frontend-edit-button.