“Edit this entry” plugin
Posted: 22 November 2008 05:57 PM   [ Ignore ]  
Summer Student
Total Posts:  13
Joined  07-09-2008

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.

File Attachments
pi.edit_entry.php.zip  (File Size: 1KB - Downloads: 28)
Profile
 
 
Posted: 22 November 2008 07:19 PM   [ Ignore ]   [ # 1 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6086
Joined  08-04-2002

There has been this - Wiki

Profile
 
 
Posted: 22 November 2008 07:47 PM   [ Ignore ]   [ # 2 ]  
Summer Student
Total Posts:  13
Joined  07-09-2008

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

Profile
 
 
Posted: 22 November 2008 08:39 PM   [ Ignore ]   [ # 3 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6086
Joined  08-04-2002

Cool

Profile
 
 
Posted: 23 November 2008 06:27 AM   [ Ignore ]   [ # 4 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7061
Joined  04-15-2006

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

 Signature 

Full List Of Plugins Here!! (16)
 
Retrieve Statuses
Maximum Posts Reached
Neat Link
Redirect
Fetch URI

Profile
 
 
Posted: 30 November 2008 05:38 AM   [ Ignore ]   [ # 5 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  151
Joined  05-25-2002

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

 Signature 

Caleydon Media

+ CM Strange URL Interpreter
+ CM Textarea Resizer
+ CM Template Editor (EditArea)

Profile
 
 
Posted: 30 November 2008 02:56 PM   [ Ignore ]   [ # 6 ]  
Summer Student
Total Posts:  13
Joined  07-09-2008

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.

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 66390 Total Logged-in Users: 41
Total Topics: 84714 Total Anonymous Users: 15
Total Replies: 454693 Total Guests: 200
Total Posts: 539407    
Members ( View Memberlist )