[pmwiki-users] categories - names, i18n

Hans design5 at softflow.co.uk
Fri Mar 7 13:51:10 CST 2008


Friday, March 7, 2008, 7:02:28 PM, Patrick Ogay wrote:

> but categories can't be named, respectvely the categorie is looked as a
> normal link without !
> [[!ABC|ABCrelated]]
> [[!ABC|$[ABCrelated]]]   resolves in   ABC/HomePage not  category/ABC

try adding the following to config.php:

## [[!Category| text]]
SDV($CategoryGroup,'Category');
SDV($LinkCategoryFmt,"<a class='categorylink' href='\$LinkUrl'>\$LinkText</a>");
Markup('[[!|','<[[|',"/(?>\\[\\[!([^|\\]]*)\\|\\s*)(.*?)\\s*\\]\\]($SuffixPattern)/e",
  "Keep(MakeLink(\$pagename,PSS('$CategoryGroup/$1'),PSS('$2'),'$3',\$GLOBALS['LinkCategoryFmt']),'L')");



  ~Hans




More information about the pmwiki-users mailing list