Current version: 1.1.1
1.0.0 Initial Release
1.0.1 Added session caching on security queries, and colored icons!
1.1.0 Substantially modified/improved authz caching; added support for session IDs; modified tags to require more (and different) parameters.
1.1.1 Fixed a bug causing newlines and blank pages
FTP the edit_this_themes directory to the /themes directory in your EE install:
Note: As of 1.1.0, required tag parameters have changed. Please review usage and adjust your tags as necessary.
This plugin will put small pencil icons in the live site, but only for users who are logged in, have an administrative session, and have permission to edit that particular resource.
All parameters are required, except “icon”.
The simplest usage is simply this tag without any enclosed text:
Entries:
{exp:edit_this:entry entry_id="{entry_id}" weblog_id="{weblog_id}" author_id="{author_id}"}
Templates:
{exp:edit_this:template template_id="42" template_group="2"}
Categories:
{exp:edit_this:category category_id="{category_id}" category_group="{category_group}"}
Gallery Images:
{exp:edit_this:image entry_id="{entry_id}"}
If you wish to use a different icon image, several different colors are provided (in the /themes/edit_this_themes/images directory). You can even put your own image there, as long as the filename ends in “_icon.gif”. Call alternate icons like so:
{exp:edit_this:template template_id="42" template_group="2" icon="blue"}
Advanced Use:
You can use the same tag, but enclose some text within it. The plugin will do the permission check, but leave the presentation of the link to you. This allows you to change the display to whatever you’d like, and you could have entire instructions or alternate content displayed by this plugin.
You can even point to a front-end editing template (stand alone editing form) using this option.
{exp:edit_this:entry entry_id="{entry_id}" weblog_id="{weblog_id}" author_id="{author_id}"}
<a href="{edit_this_url}">I can edit this</a>
{/exp:edit_this:entry}
{exp:edit_this:template template_id="42" template_group="2"}
<a href="{edit_this_url}">I can edit this</a>
{/exp:edit_this:template}
{exp:edit_this:category category_id="{category_id}" category_group="{category_group}"}
<a href="{edit_this_url}">I can edit this</a>
{/exp:edit_this:category}
{exp:edit_this:image entry_id="{entry_id}"}
<a href="{edit_this_url}">I can edit this</a>
{/exp:edit_this:image}
Image editing only applies to images in the gallery module.
Also, please note:
Updating Edit This is easy: