From: Marcel v. d. B. <ma...@hs...> - 2002-02-22 10:56:57
|
We use categories with the Category:Categoryname syntax and the FullTextSearch plugin to generate pages with the pages which belong to a certain category. For us we made a little change to the FullTextSearch plugin (which is attached) So what we do is: 1. At the bottom of a page we include the text Category:CategoryName which is linked as per the configuration in the interwiki.map file (we let it link to a page called "CategoryCategoryName") 2. On the page "CategoryCategoryName" we include the following: --snip-- This page contains a list of documents in the Category:CategoryName category: <?plugin FullTextSearch s="Category:CategoryName" noheader=1 onlytitle=1 ?> or <?plugin FullTextSearch s="Category:Development -Category:Category" noheader=1 onlytitle=1 ?> The latter will not show the main Category page which lists all categories. The "onlytitle" parameter is the one we added to the plugin: if set to 1 the plugin only returns the names of the pages and not the text found in the page itself. I've attached the modified plugin. As this was a very simple and quick hack to the module I don't know if this is of general interest to include in the distribution, but here it 's attached. We also have a Category:Empty page which lists all the non-categorized pages. In this case the plugin like looks like: <?plugin FullTextSearch s="-Category:" noheader=1 onlytitle=1 ?> Notice the minus sign? This will give a list of pages NOT containing the string "Category:" Marcel Roel Vanhout wrote: >Hi all, > >While looking for documentation on the phpwiki site I noticed that there >seems to be a concept of categories - how do I use these? How do I >create one, and how do I add pages to a category? Is there a standard >way to get a list of all categories? And from what version on does this >work? Thanks! > >cheers, > >roel > > > > >_______________________________________________ >Phpwiki-talk mailing list >Php...@li... >https://lists.sourceforge.net/lists/listinfo/phpwiki-talk > -- Marcel van der Boom HS-Development BV Kwartiersedijk 14B Fijnaart, The Netherlands Tel. : 0168-468822 Fax. : 0168-468823 Email: ma...@hs... |