Gossamer Forum
Home : Products : Others : Fileman :

Integrated Editor

Quote Reply
Integrated Editor
I would like to use the Integrated Editor to allow my users to build pages that use a standard header and footer wrapper. In other words, I would like the editing process to focus on the building of content. What I imagine is that whenever a new file is edited, the header is read from the header.inc and merged into the saved document during the write. Same procedure for the footer. Whenever the file is edited (by clicking on the link in Fileman2, the header and footer parts are removed before loading it into the Editor. This will allow me to easily change the look and feel of the site simply by changing the header and footer include files. SSI is not allowed on the webserver, but I do have and use a cgi script that imitates SSI - which would simplify the add and remove step to the top and bottom tags.

So, whenever a file is saved from the Editor:
  • write "header" tag first
  • write "document"
  • write "footer" tag last


Whenever a file is edited:
  • remove "header" tag
  • remove "footer" tag
  • display document


Can anyone point me to the modules that have to be edited to do this and possibly provide some prototype code to get me started?

As always, your help is much appreciated.

Phil