[pmwiki-users] Suggestion and recipe for categories as tags
Kathryn Andersen
kat_lists at katspace.homelinux.org
Thu Sep 21 22:48:25 CDT 2006
On Thu, Sep 21, 2006 at 02:38:26PM -0700, Martin Fick wrote:
> --- "Patrick R. Michaud" <pmichaud at pobox.com> wrote:
>
> > On Thu, Sep 21, 2006 at 10:05:05PM +0200, Stefan
> > Schimanski wrote:
> > 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.)
>
> If I am reading this correctly, the targets= feature
> is already implemented by the PageListExtensions
> recipe except that I do not think that I implemented
> wildcards so it will only be useful for a single page.
Yes, it was only a single page.
> > (:pagelist targets=Main.* group=Category:)
>
> But I never thought of using it with the
> group=Category option, I don't know if it will work,
> probably? Cool, I didn't think of using it quite that
> way.
Yes, I noticed, looking in the code a while back, and it was very
frustrating to me, because there were things I wanted to do
checking the targets of a page in combination with other wildcards
(like group= and name=) and I couldn't do them.
Such as finding out what links there were from the current page to the
Author group, for my StoryArchive recipe.
I think I ended up writing a bunch of PHP code to grab the information
and put it in a page variable.
Mind you, when the {$:var} variables happen, I'll be changing it all to
use them -- it will make things so much simpler and easier.
Kathryn Andersen
--
_--_|\ | Kathryn Andersen <http://www.katspace.com>
/ \ |
\_.--.*/ | GenFicCrit mailing list <http://www.katspace.com/gen_fic_crit/>
v |
------------| Melbourne -> Victoria -> Australia -> Southern Hemisphere
Maranatha! | -> Earth -> Sol -> Milky Way Galaxy -> Universe
More information about the pmwiki-users
mailing list