[Pmwiki-users] Re: Publishing a part of your wiki -- Experience using PmWiki

chr@home.se chr
Wed Sep 22 07:50:14 CDT 2004

On Wed, 22 Sep 2004, Patrick R. Michaud wrote:

> > A custom EditFunction could instead of exporting the page upon a save, add
> > the name of the page to e.g. 'PagesToBeExported'. The publisher can then
> > use this page to simplify the proofreading task. 
> One can do this already -- just create custom RecentChanges pages that
> are only updated when the text contains [:public:].  In PmWiki 1.0:
>     if (strstr(@$_REQUEST['text'],'[:public:]')!==false) {
>       $RecentChanges['Main.PagesToBeExported'] =
>         '* $Group.$Tlink . . . $CurrentTime by $AuthorLink';
>     }

That's nice. I don't think I'll need this functionality soon, but it's 
nice to know that I can easily monitor changes to certain pages. Then it's 
a matter of making a script (or php-function) that exports the relevant 

However, since my need isn't urgent, I really just wanted to discuss the
functionality as such. Below is the idea I had, but with some more meat, 
to help clarify what I was thinking about. 

Reminder: The objective is to create a set of separate wiki pages in a
"public" wiki, based on a subset of pages in a "private" wiki. A page
which may be exported is called "publishable" page, and this might for
instance be indicated by the prescene of a '[:public:]'-directive. The
public wiki is an entirely separate wiki(-field), and will optionally
allow users to edit the published pages.

User case (the user is referred to as the "publisher" here):

* A "publisher" creates a special wiki page, 'Main.PagesToExport', where
  he lists pages that should be exported. And also to where they should
  be exported (through some special directive).
** The publisher can then export pages listed on this page through a URI:
   Suitable access rights should be necessary for this action of course.

* When a publishable page is modified, this is noted here:

* That page, 'Main.ModifiedExportedPages', allows the "publisher" to:
** Check what changes have happened to the various publishable pages
** Re-export the pages, perhaps by invoking some special action.
  where the export destination could be specified in the page source.

So what do people think of this? Does it sound useful, or is it bloat?


Christian Ridderstr?m, +46-8-768 39 44               http://www.md.kth.se/~chr

More information about the pmwiki-users mailing list