[Pmwiki-users] Re: Categories instead of hierarchies?

chr@home.se chr
Wed Oct 27 01:34:42 CDT 2004


> >As an example of special markup, I can see the need for something that 
> >creates a list of all the categories a page belongs to (i.e. creates a 
> >list with links to the corresponding category pages).
> >
> >Furthermore, I think that from a logical point of view the action of
> >saying that "this page belongs to category XYZ" should really be a
> >directive. Or at least be available as a directive.
> >
> >I would also like the possibility to logically separate between:
> >* Adding a page (ie marking it as belonging) to a category
> >* Inserting a link to a category page
> >
> >For instance, let's say that we want to put a link to the category page
> >at the top of a page as well as at the bottom of page. Let's say we did
> >this by inserting
> >
> >	Categories: [[Category/XYZ]]
> >
> >at the top of the page and at the bottom of the page. We have now marked
> >this page as belonging to XYZ twice...  so if we want to change the
> >category we have to make the adjustment in several places.
> 
> As Patrick says, this is the compelling reason for a separate markup.
> Category/XYZ is just a link; [[!XYZ]] is assigning to a category. 
> This too needs to be a link, as it's the most common case, hence use
> of [[ ... ]] markup.

I think [[...]] should be a link, but I want to be able to mark a page as 
belonging to category without creating a link. Using %Comment%[[!XYZ]]%% 
seems nonintuitive for that purpose. But how about this:

  (:!XYZ:)	- Mark page as belonging to XYZ
  [[!XYZ]]	- Mark page as belonging to XYZ and link to category page

Then I'd also like some markup which creates a link to all the categories 
the current page belongs to...

/Christian

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




More information about the pmwiki-users mailing list