[pmwiki-users] glossary link

Patrick R. Michaud pmichaud at pobox.com
Mon Jan 29 13:34:27 CST 2007


On Thu, Jan 25, 2007 at 10:25:58PM +0100, noskule wrote:
> hi list
> I intend to make a glossary link, much the same as the category link
> 
> SDV($GlossaryGroup,'Glossary');
> SDV($LinkGlossaryFmt,"<a class='glossarylink' 
> href='\$LinkUrl'>\$LinkText</a>");
> Markup('Glossary','<[[','/\\[\\[!(.*?)\\]\\]/e',
>   "Keep(MakeLink(\$pagename,PSS('$GlossaryGroup/$1'),NULL,'',
> \$GLOBALS['LinkGlossaryFmt']),'L')");

It looks as though this markup is using the same [[!...]]
sequence as the category markup -- how would PmWiki tell the
difference?

Or, if you're intending to replace the category markup with
a glossary markup, then just leave the existing markup
alone and use 

    $CategoryGroup = 'Glossary';

This will cause all [[!...]] links to go to pages in
a Glossary group.

Pm



More information about the pmwiki-users mailing list