2014-02-10, 10:23:50
Hello GetSimple community.
I once again submitted a few lines of code, that may come in handy in certain situations:
Edit Page is a very simple plugin which does nothing, but adding an "Edit this page" link below every page's content area.
I know that Edit This Page exists, but due to a lack of GSCOOKIEISSITEWIDE in GetSimple versions >= 3.1 it does not work at all.
To overcome this problem my code does not expect the user to be logged to the admin backend, but just prints this link to every page. I know that this is most probably not suitable for production pages, but may still be handy for maintenance or development situations where a lot of content is being added/altered while the website is offline.
If one of the core developers reads this: Is there any way to check if the admin user is logged in other than using GSCOOKIEISSITEWIDE?
I hope you'll enjoy it. Have a nice day!
I once again submitted a few lines of code, that may come in handy in certain situations:
Edit Page is a very simple plugin which does nothing, but adding an "Edit this page" link below every page's content area.
I know that Edit This Page exists, but due to a lack of GSCOOKIEISSITEWIDE in GetSimple versions >= 3.1 it does not work at all.
To overcome this problem my code does not expect the user to be logged to the admin backend, but just prints this link to every page. I know that this is most probably not suitable for production pages, but may still be handy for maintenance or development situations where a lot of content is being added/altered while the website is offline.
If one of the core developers reads this: Is there any way to check if the admin user is logged in other than using GSCOOKIEISSITEWIDE?
I hope you'll enjoy it. Have a nice day!