• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: My front-end editing plugin (sort of...)
PostPosted: Sun Nov 14, 2004 9:19 pm 
Offline
Forum Members
Forum Members

Joined: Wed Nov 10, 2004 10:17 pm
Posts: 42
Create a user defined plugin called "edit_button" (or whatever you like) and then past this code into it...

Code:
global $gCms;
echo "<a href=admin/editcontent.php?page_id=".$gCms->variables['page']." target=_new><img src=images/cms/edit.gif border=0></a>";


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.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: My front-end editing plugin (sort of...)
PostPosted: Mon Nov 15, 2004 10:06 pm 
I have an idea, but that is all it is since I am still a coding newbie... How about using css and wrapping it in a div that gets a display:none unless the login session variable is active.

Don't even know if I used the correct words...

Shannon


Top
   
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: googlebot


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Hosting Nation - Managed CMSMS Hosting