iRev on line Page Editor

Sarah Reichelt sarah.reichelt at gmail.com
Sat Nov 7 18:27:30 EST 2009


On Sun, Nov 8, 2009 at 6:59 AM, Sivakatirswami <katir at hindu.org> wrote:
> I'm wondering if anyone has already build a page editor, kind of like a wiki
> thing... where you are on an iRev page, you click a button and  (in my case)
> you get the html content for

I have written a page like this that allows me to edit some of my
pages online. The trick is in setting the page up at the start. I use
text files that contain the actual data and the displaying page reads
that in and formats it for display. This means that my editing page
just needs to list the existing text files and allow me to select one
of them for editing, or create a new text file. The form then saves
the edited or new text back to one of the text files so it can be
displayed as usual.

I make sure to replace ampersands, less-than and greater-than signs
with their HTML entities before saving. And when saving a new file,
On-Rev has a nasty habit of saving the file name at the start, so I
write empty to the file first, then write my text to the file in a
second write).

My editing page is in a protected folder since I don't allow anyone
but me to edit these pages, but I can send you the scripts if you
would like.

Cheers,
Sarah



More information about the use-livecode mailing list