Edit This

Current version: 2.1

Edit This Documentation

Version History

2.1 Added an “edit_this” class to the icon for easier styling

2.0.1 Switch to using the third_party themes directory
2.0.0 Initial release for EE 2.x

1.1.1 Fixed a bug causing newlines and blank pages
1.1.0 Substantially modified/improved authz caching; added support for session IDs; modified tags to require more (and different) parameters.
1.0.1 Added session caching on security queries, and colored icons!
1.0.0 Initial Release

Installation for EE 2.x

  1. Unzip the main file to a temporary location on your local hard drive
  2. FTP the following folders from their local folders to the same locations in your EE install’s /system/third_party folder on the server:
    • /edit_this/
  3. FTP the themes/edit_this directory to the /themes/third_party directory in your EE install:

    • /themes/third_party/edit_this

Installation for EE 1.x

  1. The EditThis zip file contains an earlier version of EditThis for people still using EE 1.x Unzip the main file to a temporary location on your local hard drive. Look for the EditThis 1.1.1 zip file, and unzip it as well.  Look inside that folder.
  2. FTP the pi.edit_this.php to your EE install’s /system/plugins folder on the server:
    • /plugins/
  3. FTP the /edit_this_themes/ directory to the /themes/ directory in your EE 1.x install:

    • /themes/edit_this_themes

Usage

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. All of these will return an image and link as follows:

{exp:edit_this:entry entry_id="{entry_id}" weblog_id="{weblog_id}" author_id="{author_id}"}
Edit this

You can over-ride styles on the image using the .edit_this class.

Entries:

{exp:edit_this:entry entry_id="{entry_id}" weblog_id="{weblog_id}" author_id="{author_id}"}
{exp:edit_this:entry entry_id="{entry_id}" channel_id="{channel_id}" author_id="{author_id}"} 

Templates:

{exp:edit_this:template template_id="42" template_group="2"}

(There’s no way to dynamically insert the template_id or template_group, sadly, so you will need to hard code it or fetch it some creative way.)

Categories:

{exp:edit_this:category category_id="{category_id}" category_group="{category_group}"}

Gallery Images (1.x only):

{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.

For example, you can point to a front-end editing template (stand alone editing form) using this option.  Or you could make the link be straight text, not an image.

{exp:edit_this:entry entry_id="{entry_id}" channel_id="{channel_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, you may need to set a cookie domain, or turn on cookies in the control panel, for edit_this to work.

Permissions Required

  • For entries, users must be authorized to edit entries in the specific weblog; they must have control panel access; and they must have access to the edit tab.
  • For templates, users must be authorized to edit templates in the specific template group; they must have control panel access; and they must be authorized to administer templates.
  • For categories, users must have control panel access; they must be authorized to access the admin tab; and they must be authorized to administer weblogs.
  • For gallery entries, users must have access to the gallery module; they must have control panel access; and they must have access to the modules tab.
  • For all types of content, users must have an authenticated administrative session.

Updating

Updating Edit This is easy:

  1. Download a new version from this Web site, and extract on your hard drive.
  2. Upload the new files to their appropriate locations.

Uninstallation

  1. Remove the pi.edit_this.php file from your site’s “plugins” directory.
  2. Remove the edit_this_themes directory from your site’s “themes” directory.
Tracker Pixel for Entry

From the Blog

  • Click to fill out the Hop Studios Quote Request Form

Other Software



From the Blog

Subscribe to our news feed
Follow us on Twitter






 
Made in Vancouver