[pmwiki-users] Suggestion and recipe for categories as tags
Patrick R. Michaud
pmichaud at pobox.com
Thu Sep 21 15:26:50 CDT 2006
On Thu, Sep 21, 2006 at 10:05:05PM +0200, Stefan Schimanski wrote:
> > On Thu, Sep 21, 2006 at 09:26:21PM +0200, Stefan Schimanski wrote:
> >> It would be nice if PmWiki would support something like a "linked"
> >> option in the pagelist syntax:
> >>
> >> (:pagelist linked=Main.*:)
> >
> > In other words, this should generate a list of all targets of
> > all pages in the Main group? Hmm, I'm not sure how this helps.
>
> Make it (:pagelist linked=Main.* group=Category:) and you get the
> categories used in pages of the Main group.
Ah, I see. I'm not sure that "linked=" is the parameter name
I'd want to use here; seems like it would be too easily confused
with the existing "link=" parameter.
Two other parameter name possibilities:
(:pagelist linksfrom=Main.* group=Category:)
(:pagelist targets=Main.* group=Category:)
Essentially, we're saying that we want a list of the links
from a page, instead of the links to a page. (Internally, pmwiki
knows the links to a page as "targets", but I'm not sure that
targets= is intuitively correct for the parameter name here.)
> Make it (:pagelist
> linked=Main.* name=Bla*:) to show categories starting with "Bla".
I think (hope) you mean (:pagelist linked=Main.* name=Category.Bla* :)
if you really want to limit it to categories, as opposed to
any page starting with "Bla".
> > Out of curiosity, what happens if the .pageindex file is empty
> > or incomplete? (PmWiki doesn't make any guarantees that the
> > .pageindex file is complete -- it provides "useful optimizations"
> > but not necessarily a complete map.)
>
> That's a good question of course. Don't know the current policy of
> PmWiki to update this index. It was always complete (enough) whenever I
> checked.
The real question is: would the recipe work on a fresh install
of PmWiki, where no searches have been performed yet? Or how about
a site that has the .pageindex disabled?
Pm
More information about the pmwiki-users
mailing list