extending page metadata?
[email protected] (Kevin Walker) Wed, 2 Feb 2005 10:12:21 -0800
| Newsgroups | perl.kwiki |
|---|---|
| Message-ID | <p06110407be26c4153726@[4.243.128.7]> |
Hi. I'd like to store a short description of a page edit in the RCS file for the page (e.g. "added paragraph on bighorn sheep" or "spelling corrections"). What is the simplest and/or cleanest way to do this? I already have a replacement for Kwiki::Edit which adds a "describe your changes" field to the page edit web form. But I don't see a way to store this info in the RCS file without a lot more work. Kwiki::Archive::Rcs stores info from the page metadata, but I don't see a way to hook into the page metadata storage. (The metadata fields are hard-coded in Kwiki::PageMeta.) Is there a way to subclass Kwiki::PageMeta without also messing with Kwiki::Pages? (They are contained in the same file.) Alternatively, I could subclass Kwiki::Archive::Rcs, but that won't work because it doesn't communicate directly with the edit class. Suggestions? Kevin