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

John Rankin john.rankin at affinity.co.nz
Thu Aug 4 17:50:36 CDT 2005


On Friday, 5 August 2005 1:21 AM, Sven Opitz <opitzs at googlemail.com> wrote:
>Hi,
>
> I have a small Problem:
> I have pages, that belong to category MyCategory and I mark them with [[!MyCategory]].
> When I want to link to theis category, to point a User to the
>pages that belong to a topic I use
> [[Category/MyCategory | Pages belonging to MyCategory]].
> Let's say I put this in the SideBar, then suddenly Sidebar
>becomes a member of this category.
>
> Is there a way to link to a category, without the linking page
>becoming a member of this category?
>
> Thanks
> Sven
>
There are at least 2 answers. Try the following:

1. have the category search look for '!{Name}' rather than look for links

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

That way, it should find only references to !... This isn't perfect:
!Help will find both [[!Help]] and [[!Helpexamples]]. So '[[!{$Name}]]'
might be better.

2. add 'SideBar' to the list of pages omitted from the search with

    $SearchPatterns['mormal'][] = '!\.SideBar$!';

Hope this helps
-- 
JR
--
John Rankin






More information about the pmwiki-users mailing list