My front-end editing plugin (sort of...)
Posted: Sun Nov 14, 2004 9:19 pm
Create a user defined plugin called "edit_button" (or whatever you like) and then past this code into it...
When you want a page to have a little edit-this-page image on it just insert the tag {edit_button} where you want to image to appear. Easy.
Unfortunatley wishy nor I can find a way to make it invisible if you're not logged in yet, but wishy is working on something. If you've got any ideas, please share them.
Code: Select all
global $gCms;
echo "<a href=admin/editcontent.php?page_id=".$gCms->variables['page']." target=_new><img src=images/cms/edit.gif border=0></a>";
Unfortunatley wishy nor I can find a way to make it invisible if you're not logged in yet, but wishy is working on something. If you've got any ideas, please share them.