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:
- download the script and unpack it in your website folder – or unpack and upload if you don’t have shell access.
- edit the conf.php file to change the default username and password
- make the content folder writeable by the web server process
- 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. - point your browser at http://www.mysite.com/myfile.php?auth=1 (the auth=1 part will authenticate you and enable the editor)
- 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
