Home » EE Delete Entry Plugin Usage
The delete entry plugin enables your site users to delete entries from outside of the EE control panel if they have the appropriate permissions. You can modify the various messages that the script outputs by changing the values in the config section of pi.delete_entry.php. The plugin has two functions:
This tag is used in pairs and generates the URL to the entry-specific deletion page. There are four available parameters with the link function:
Example usage inside a weblog entries tag:
{exp:delete_entry:link entryid="{entry_id}" entrytype="image" template="site/delete"}Delete{/exp:delete_entry:link}
This tag should be embedded in a special ‘delete entry’ template. You can wrap as little or as much HTML around the tag as you like to ensure that the page is styled to suit your site. The user message (e.g. entry successfully deleted) will appear wherever the tag itself is placed. Currently the plugin is only designed to delete one entry at a time, so you should never embed more than one copy of the tag in a page. All of the standard user EE access checks are completed before a user is allowed to delete the entry, so ensure that your member group permissions are set very carefully.
This function only has one parameter:
Example usage:
{exp:delete_entry:delete returnlink="true"}
Given that this entry allows the removal of the removal of ANY weblog data dependant on member group permissions you should take massive amounts of care to ensure these are set up correctly. Care should also be exercised with the delete link tag as users will receive no prompt if javascript is not enabled in their browser (or if showconfirm is disabled).
You use this plugin at your own risk and I accept no responsibility for any loss of data (or anything else for that matter) resulting from the use of this script. Unless you really need to grant users access to delete certain types of entry without granting them access to the control panel I would not recommend using this plugin. I would not recommend using this plugin simply for added convenience. I’m content that it is fairly secure but this plugin amounts to adding another door to your house, and you wouldn’t do that unless you needed to.
You may…