Patrick R. Michaud
pmichaud at pobox.com
Mon Nov 21 10:46:36 CST 2005
On Sun, Nov 20, 2005 at 07:25:44PM -0500, Henrik Bechmann wrote:
> 1. I am using some PmWiki internals ($Imap, $FmtV, ParseArgs(),
> LinkIMap()). Is this legitimate?
Absolutely. These are not likely to ever change, and certainly
won't change in the 2.x series.
> 2. Is this whole exercise legitimate? Right direction? Right approach?
> (I'm guessing it's just a workaround for what Pm has planned, perhaps
> (:include FieldName=>FieldGroup.GroupPage :), and perhaps some way of
> marking pages to universalize links within the page to work throughout
> the Farm).
At the moment I don't have an "include page from field" feature
planned. I do have a "make some pages shareable among several
fields" feature planned, in which case one would use the standard
One potential issue with doing cross-field includes in this manner is
that any sitewide passwords of the remote field won't be applied to
the included pages.
> 3. Is the inluded text, including the licencing text appropriate
> (borrowed in general from the includewikipage cookbook directive)
Looks fine to me -- since (:includefield:) is based on PmWiki's
(:include:) code it has to be GPL-licensed.
> 4. Any and all feedback is welcome
Duplicating the readpage() function seems to be very overkill --
you should just be able to create a PageStore object that points
to the field's wiki.d directory and then use it to read the pages.
More information about the pmwiki-users