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

Knut Alboldt pmwiki
Mon Oct 25 12:44:38 CDT 2004


At 02:22 25.10.2004, JR wrote:
>On Sunday, 24 October 2004 12:02 PM, chr at home.se wrote:
> >On Sat, 23 Oct 2004, Patrick R. Michaud wrote:
> >
> >> > 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?
> >
> >What I mean is that it is more than a link because that text is also used
> >to define that a page to belongs a to a certain category. For instance, if
> >the "directive" is hidden by being inside a comment, then a reader will
> >never see the link so it is "not there". But the page still belongs to the
> >category.  To me the true purpose of [[Category/XYZ]] is to be a *marker*,
> >and the link aspect is a bonus.
> >
> >Another motivation to make it a directive btw, is that I think that would
> >make it easier for you to have all category links look a certain way
> >(through some stylesheet).
> >
> >/Christian
> >
>This was why I proposed a special markup:
>
>     [[!XYZ]] as a shortcut for [[Category/XYZ]]
>
>Three benefits:
>
>1. It allows us to make a reference to [[Category/XYZ]] on a page which
>    should not appear in the (:pagelist [[!XYZ]]:)

I like the extension of searchresults / pagelist which Patrick suggested: 
link=pagename (or something in that way) that would check for a match of 
the specified links within the target=-section of the page rather than the 
page's text (text=-section). The reason:
I'm using an additional link-markup (fieldname:: value) for referencing 
some kind of categories (special "fields" within a page, (I think like you 
can use it with FTS as well ?) which I can than search like searching in 
categories.
Sample:
a  "status:: open" textentry within a page will result in a link to 
"CMDBStatus.Open"

To find this, now I have to look for "status:: open", but what's if the 
author enteres two instead of one blank. I could setup the search with two 
differnt words "status::" and "open" but this will give me wrong results if 
they aren't in the same line. With the new link-markup I can get this as 
well as with of regex-searcharg for the searchresults-markup. But I like 
best the link=-parameter for searchresults and I think it would be easy to 
implement (also for me as a not-php-and-regex-guru :-)


>2. We can make the output become
>
>     <span class='category'>[[Category/XYZ]]</span>
>
>    so all category links have the same style

that would be preferable.

Knut

PS: I changed my maillist-adress from mailings at alboldt.de to 
pmwiki at alboldt.de to get the mailings of pmwiki-users filtered better via 
webmail - but I'm still the same :-)




More information about the pmwiki-users mailing list