[pmwiki-users] Category - Links not to include

Petko Yotov 5ko at free.fr
Mon May 7 16:55:21 CDT 2007


On Monday 07 May 2007 19:09, Nicolas Pelletier wrote:
> I have a problem with Categories.
>
> I have a category, named CatA that has 5 "members". 5 pages with [[!CatA]]
> in them.
>
> They work fine, and all link to the Category.CatA page.
>
> I have also modified that page to include all members of the category after
> a short description of the category.
>
> The problem comes when I try to link that page from elsewhere.
>
> Let's say that I want to link to the CatA Category from the home page (
> Main.Homepage) as so [[To See CatA - > Category.CatA]]
>
> The link works fine. unfortunately, it does now show Main.Homepage as part
> of category CatA.
>
> Am I missing something? Is there a workaround?

This is the default behavior of the wiki: the category is just displaying 
pages linking to it. You can have more than one workarounds:

1. If your 5 pages are in the same WikiGroup, you can edit the category page 
and add:

    (:pagelist list=normal group=TheGroup link={*$FullName}:)

To remove the group footer, which usually contains the default pagelist code, 
add also
(:nogroupfooter:)

2. You can add a keyword on the pages to be excluded from the category 
listings like:

    (:pagelist list=normal link={*$FullName} -__no_cat__:)

for example in Category.GroupFooter, and then, somewhere in the pages to be 
excluded, add the keyword:
    (:comment __no_cat__:)

We use this approach to exclude some pages from the new Cookbook listings on 
pmwiki.org (archives, release notes, tests or polls that are attached to a 
particular recipe in the Cookbook.* but not need to be in the recipe 
listings). The keyword there is __no_list__.

3. Advanced Wiki administrators can define custom lists via the 
$SearchPatterns array, see:
    http://pmwiki.org/wiki/PmWiki/PagelistVariables
    http://pmwiki.org/wiki/Cookbook/SearchResults

and use in the Category.GroupFooter :
    (:pagelist list=mycustompagelist link={*$FullName}:)

Thanks,
Petko




More information about the pmwiki-users mailing list