Hutman
 

©2009 Hutman Inc.
Design by Tilka Design
Hut Blog

Dead Simple Page Editing

February 23rd, 2010 by Robert Radtke

Just to scratch an itch – here’s a quick and easy script to allow end users to edit content areas on a website.   A lot of people end up with complex content management tools when all they really need is the ability to update a little bit of text on one or two pages of their site.  This let’s that happen with a minimum of effort.

To install:

  1. download the script and unpack it in your website folder – or unpack and upload if you don’t have shell access.
  2. edit the conf.php file to change the default username and password
  3. make the content folder writeable by the web server process
  4. on pages where you wish to enable editing.  Add the following lines of code to your php file:
    <?php include “editor/include.php”; ?> – right at the top of your php file
    <?php echo $headers; ?> – at the top of the <head> section of your site.
    <?php make_block(‘blockname’); ?> add as many of these inline in your file whereever you’d like an editable block to appear.
  5. point your browser at http://www.mysite.com/myfile.php?auth=1 (the auth=1 part will authenticate you and enable the editor)
  6. click on the block to edit and make your change.

Couldn’t be simpler right?  or – I can’t think of a way to make it simpler yet.

Shoot me an note or post a comment if you find it useful! – robert at hutman dot net

Comments are closed.






If you would like to discuss your next project or upgrade, please call us at 866.508.4940 or email us for more information. Our office hours are Monday through Friday between 8am and 5pm CST.
#