[Pmwiki-users] Re: any conclusion on catagories ?

Patrick R. Michaud pmichaud
Sat Oct 23 08:03:07 CDT 2004


On Sat, Oct 23, 2004 at 01:12:49PM +0200, chr at home.se wrote:
> On Fri, 22 Oct 2004, Patrick R. Michaud wrote:
> 
> > So, what do we get?  Every page belonging to Category.XYZ has a link
> > to Category.XYZ, and following that link automatically displays a list 
> > of all pages in the XYZ category.
> 
> Just a minor point... does the page Category.XYZ belong to the category? 
> Should a page in the group Category also have a link to itself?

Well, now that you mention it, the way things are implemented now the
category page would appear in its own list.  To me it's an open question 
as to whether or not this is correct behavior.

Also, pages such as RecentChanges show up in the category by default and
probably should be filtered with "list=normal".  Perhaps this argues for
having a special (:categorylist:) directive that uses list=normal and
an appropriate fmt= parameter.

> How could we use this hiearchy to automatically generate navigation links?
> 
> The generation of "parent links" is already done since the page 
> already contains [[Category/Comedy]], [[Category/Horror]] and [[Category/2003]].
> 
> But how can we make the sidebar automatically contain a list of siblings?
> (Or something equivalent to a wiki trail, but we don't manually maintain 
> the list of trail pages, it is derived from the category).

I'll have to think on this a bit.  It can certainly be done--perhaps
even trivially.  The navigation is a bit of a reverse tree, and could get
pretty funky when a page belongs to multiple categories.  More on this
in another message.

> > And all of this works "out of the box" without any modifications to
> > PmWiki 2.0!  
> 
> I think I'd actually prefer making it more explicit, using a directive
> like (:Category Comedy:) because it is really *more* than a link to a 
> category page.

Actually, it's not anything more than links to a category page.  Or, put 
another way, what capabilities would the Category pages have that you 
wouldn't want to make available to other pages?

Pm



More information about the pmwiki-users mailing list