[Pmwiki-users] Publishing a WikiTrail (or a WikiBook)
Patrick R. Michaud
pmichaud
Mon Aug 4 00:54:01 CDT 2003
On Mon, Aug 04, 2003 at 02:40:18PM +1200, John Rankin wrote:
>
> [...] In the end, to avoid tracking both the stop name and the
> stop link name, I introduced a variable with the value:
> [...]
> So it all works, but it would be nice to use just the "wiki:page"
> syntax and have non-existent page text come out with a reference
> to the name of the page that doesn't exist. Hence my suggestion
> for writing:
>
> $PublishList[] = "wiki:$pages[$i] ?";
>
> Then of course an administrator can redefine $DefaultPageTextFmt if required.
Idea #1: I can do something like this even without the '?' parsing--
basically if none of the pages in "wiki:page1 page2 page3" exist, then
it prints the contents of a $PrintWikiNotFoundFmt variable, and has
some $-substitution set to the name of the last page in the list. By
default $PrintWikiNotFoundFmt would be empty, which would keep the
current semantics.
Idea #2: Rather than try to use the wiki: format syntax for this, you
could simply write your own function (say, "PrintPublishList") to
print the pages in the desired sequence and making text substitutions
as required. Then you can use "function:PrintPublishList" instead of
all of the "wiki:..." entries. You could use the PrintWiki function
as a model for a PrintPublishList function (it's short, only 10 or
so lines long I think).
Pm
More information about the pmwiki-users
mailing list