We put this one together because we need it ourselves, and thought we’d share it with y’all:
Edit This lets you link viewers of your site to specific pages in the control panel. Using it you can:
The link will only appear if the viewer is logged in and has sufficient privileges to edit the targeted content.
http://www.hopstudios.com/software/edit_this
Enjoy! Justin
Hey, this looks awesome, and I am trying to implement it.
However, before I actually went to put the requisite code in my template, I noticed that it appears to have some sort of conflict with LG Htaccess Generator?
I get this when I go into the Admin -> Utilities -> Plugin Manager for some strange reason:
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /[usrpath]/system/plugins/pi.edit_this.php:330) in /[usrpath]/system/extensions/ext.lg_htaccess_generator_ext.php on line 672
(I’ve replaced the actual user path with the [usrpath] text and renamed my system folder back to system for purposes of protecting my site.)
My clients are highly unlikely to ever encounter this error if this is the only place it happens, but thought I would mention it to you as the plugin developer.
I definitely will throw some scratch your way if this works well, as a front end designer I work for frequently wants to make this part of the standard set up for his clients. 😊
FYI - you might want to edit your sample code in your documentation - I just beat my head on a wall for half an hour because there’s smart quotes in your simple version of the edit this button!
How I figured it out: because I was about to make a loooong post about how this wasn’t working at all, used the code wrapper the forum uses, and then previewed my post…and saw that the highlighted code was all wonky due to the smart quote.
You know whatfor, EE peeps? We need an EE SDK or something, that will highlight our code the way this forum does, so we know when we make a mistake. :cheese:
Dreamweaver for EE! 😊
Addition: Is there any way to implement some sort of version of the code highlighting that happens on this forum for the template text areas in the CP?? That would be one awesome feature.
OK, now I am really off topic…
Looks like line 101 needs the weblog_id added so that the entry page opens without all tabs shown. I tried some lame coding to fix it but couldn’t get it to pull the weblog ID. Needs to be:
?C=edit&M=edit_entry&weblog_id=2&entry_id=123
instead of
?C=edit&M=edit_entry&entry_id=123
Very nice addition regardless of this little quirk.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.