From: Micki K. <mic...@co...> - 2004-08-23 04:04:40
|
Reini: SO glad to see this. It's what I've been working on/waiting for for a long time - IncludeSiteMap is okay, but it will massively increase phpwiki's usefulness as the core of our documentation creation environment in the following way: We use certain Categories to indicate 'approved', 'completed', 'obsolete', 'shipping' documentation, and by doing a 'FullTextSearch' we currently can autogenerate lists of documents maatching the right criteria. With this pluginlist capability and IncludePage, we can automatically create complete web pages (and, by extension, pdf's and html directories) containing not only a list, but the content of the pages themselves... ...I'm looking forward to experimenting with it! Thanks again, Micki At 8:40 PM -0700 8/22/04, php...@li... wrote: >Message: 2 >Date: Sun, 22 Aug 2004 16:34:06 +0200 >From: Reini Urban <ru...@x-...> >To: php...@li... >Subject: [Phpwiki-talk] plugin-list proposal > >I carry for some weeks now this idea with me and want to share it. > >The problem is that several plugins produce page lists, and other >plugins accept page lists as input, but there's no connection between them. >For example BackLinks produces a list of pages, which could be used as >pages argument for the IncludePage plugin, if it will be extended for >multiple pages, or as argument to the ListSubpages, WikiAdminSetAcl, >WikiAdminSearchReplace plugins. >Or for the example for the exclude argument > >I would like to discuss an additional API for plugins which is similar >to run() but returns ony a list of pages, not the HTML'ized UL list, >which in turn can be used as input argument to other plugins. >Similar to unix pipes. >Arguments accepting only a single pagename will take the first page from >the list. >The list method will share the same code as run, but only returns a LIST >of pagenames, not the HTML objects. >For the start list() could extract the pagename list from the run() method. >Several plugins will require a unification of the "pages" vs. "p" vs. >"s" argument. > >Examples: > >Select the pages linking to HomePage to change a text. ><?plugin WikiAdminSearchReplace p=<?plugin-list BackLinks >page="HomePage" ?> ?> > >List the subpages of the first page starting with "Doc*": ><?plugin ListSubpages basepage=<?plugin-list TitleSearch s="Doc*" ?> ?> > >remove some of the orphaned pages: ><?plugin WikiAdminRemove p=<?plugin-list OrphanedPages ?> ?> -- Micki mailto:mic...@co... |