From: Whit B. <wh...@tr...> - 2004-02-23 20:01:22
|
Hi, Is InlineParser.php where section headings (!, !!, !!!) get handled? Is there any way to have a plugin alter (extend) the action taken when the section heading is output, or does that require adding code to base files (such as InlineParser)? What I would like to do is either have any page toggleable so that all section headings are of an extended type, or else define a parallel set of codes (some other character than !) which produce this second sort of heading. The difference in this sort of heading is that each one would be accompanied by a link to a subpage for comments on that section. Then I want to present an option to "unfold" these individual subpages (via a variation on the current UnfoldSubpages.php that just goes for a single subpage) into right-aligned half-page-width tables starting at each section head. So each section head would alternately be accompanied by a "comment" link, or by a table on the right showing any existing comments as well as an "additional comment" link. I'm unclear whether the plugin architecture is rich enough to do this or whether I just need to hack PhpWiki's base files - which looks like it should be fairly simple once I can decipher just how those section headings get mangled. I'd rather make a proper plugin of it if that's possible for action on the level of the whole page, rather than just - like the plugins I've looked at so far - in a single spot on the page given over to the plugin. Thanks for any advice. The code is impressively concise, it's just taking a bit of study to get up to speed on it. Whit |