[pmwiki-users] Link to Category becomes a member of this category

John Rankin john.rankin at affinity.co.nz
Sun Aug 7 23:23:06 CDT 2005


On Saturday, 6 August 2005 10:55 AM, Thomas -Balu- Walter <list+pmwiki-users at b-a-l-u.de> wrote:
>On Thu, Aug 04, 2005 at 12:21:53PM -0400, David Spitzley wrote:
>> If you check out the Using Categories page on PmWiki.org, I just
>> reorganized and added an answer to this question, which I just got
>> answered myself recently.  If you change your (:pagelist:) syntax to
>> 
>> (:pagelist '!{$Name}' list=normal:)
>> 
>> you'll get a list of just the [[!MyCategory]] links, as it
>will be pulling up pages containing the !MyCategory phrase.
>
>I just stumbled over this, so I guess I need to ask here too ;)
>
>Shouldn't we use (:pagelist link=Category.{$Name}:)? 
>
>Otherwise you will get problems if you have categories that include a
>part of a different category - e.g. when nesting them?
>
>For example:
>Category/2005-08 is also listed on Category/2005 even though it should
>be a different  category.
>
>     Balu.
>
The problem is that AFAIK using link= finds references to

[[Category/2005]]

as well as

[[!2005]]

To solve the nesting problem, I think one can use:

(:pagelist '[[!{$Name}]]' list=normal:)

-- 
JR
--
John Rankin






More information about the pmwiki-users mailing list