We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

"Edit this entry" plugin

Development and Programming

prolifique's avatar
prolifique
5 posts
16 years ago
prolifique's avatar prolifique

I’ve been frustrated to not find such as basic feature as a “edit this entry” link (which every other CMS seems to have). If there is one and I’m missing it, please tell me.

Assuming there isn’t, I whipped up this little plug-in, which gives you this feature(if, of course, you’re logged in to the control panel in the current session).

Instructions: Unzip and save attached file to your EE /plugins folder. To use, insert {exp:edit_entry entry_id="{entry_id}”} on any template where {entry_id} will give you a value (e.g., within an exp:weblog:entries loop).

Since this is my first EE site and my first plug-in, critique and improvements very much welcome.

       
PXLated's avatar
PXLated
1,800 posts
16 years ago
PXLated's avatar PXLated

There has been this - Wiki

       
prolifique's avatar
prolifique
5 posts
16 years ago
prolifique's avatar prolifique

Saw that (and used it as the basis of this plug-in) but thought it too cumbersome to have to add to every template.

       
PXLated's avatar
PXLated
1,800 posts
16 years ago
PXLated's avatar PXLated

Cool

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen

Hiya,

Nice little idea. I think you might need to check to see if people are showing index.php on their site though otherwise you get links like this :

http://localhost:8888/ee165/admin/index.phpindex.php?C=edit&M=edit_entry&entry_id=3

A quick edit of the plugin can fix it for those that do show the index.php file but you could probably find out if the user has removed the index.php from their configuration or perhaps easier just provide a parameter in the plugin for this.

One other very small thing is the documentation inside the plugin which shows in the control panel is missing the entry_id=”{entry_id}” part in the plugin tag.

Very nice idea though.

Best wishes,

Mark

       
Gabriel's avatar
Gabriel
130 posts
16 years ago
Gabriel's avatar Gabriel

Hi, the plugin doesn’t work. I get error message:

Notice: Undefined index: entry_id in /var/hosts/www/system/plugins/pi.edit_entry.php on line 22
       
prolifique's avatar
prolifique
5 posts
16 years ago
prolifique's avatar prolifique

Are you using it somewhere that “entry_id” has a value, e.g., within a exp:weblog:entries loop, as noted in the comments? If not, it won’t work, as it won’t know what entry you want to edit. Test to make sure you’ve got a value by sticking in a {entry_id} in the same spot.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.