29
Mar
0
Create an 'Edit this Page' link
For some sites you may want your client to be able to click a link on a particlar page and be taken strait to that page in the admin area. Here's what a link that does just that would look like:
If you wanted this to only show up when a user is logged in you could use the CurrentMember call to check. So it would look like this:
You could also take this a step further and write a function in your page controller to check whether the current user has permission to access the CMS using Permission::check('CMS_ACCESS_CMSMain') call.
About the Author
Name: Aram Balakjian
Website: http://www.aabweb.co.uk
Aram is a web designer/developer running London based agency aab web. He has a strong passion for developing attractive, usable sites around the SilverStripe CMS.
Comments (0)
No one has commented on this page yet.
RSS feed for comments on this page RSS feed for all comments