[pmwiki-users] Simplest possible section editing

Randy Brown alongkiss at aprivatespot.com
Thu Jul 29 23:44:20 CDT 2010

Existing section-editing recipes don't do quite what I want. For example, Fox forms doesn't yet handle concurrent edits, while neither Fox nor SectionEdit handles "sections" such as title directives.

I know how to indicate the section to edit via an http request. I think I can figure out how to identify the section on the page by using well-defined strings. But I don't have a clue how to interact with PmWiki forms.

I envision using PmWiki's existing form mechanisms, but hiding the text that comes before and after the desired section on a page. On save or preview, I'd re-insert the hidden text. In my vision, I wouldn't have to worry about things like Replace on Save logic, because the page's text would be reassembled by the time it gets that far.

Is the approach I envision possible? What function(s) would I need to modify, and can that be done without patching the core or breaking something in PmWiki? Would I need to use javascript (which I don't know), or can this be done entirely in PHP (which I'm starting know a little)?


More information about the pmwiki-users mailing list