[pmwiki-users] Creating GTD @Context by modifying !Category markup

Mike Shanley up at upisup.com
Sat Sep 8 15:54:59 CDT 2007

Pico Ben-Amotz wrote:
>> In config.php, write this:
>> Markup('[[!','<links','/\[\[@([^\|\]] ?)\]\]/',
>>   "<span class='category'>[[$CategoryGroup/$1]]</span>")
Well the first '[[!' is the name and doesn't affect the markup. Making 
it the same replaces the OLD categories markup, which saves that much 
page processing. Perhaps making it parse early on (note the '<[='). I'm 
sorry I couldn't be of more help.

Markup('[[!','<[=','/\[\[\@([^\|\]] ?)\]\]/',
  "<span class='category'>[[$CategoryGroup/$1]]</span>");

I'm sorry I couldn't test my suggestions first, as I'm away from home today.

        ~Mike Shanley~

    ~you are almost there~

More information about the pmwiki-users mailing list