Thanks Patrick - that fixes it for me and I liked your thorough explanation.
Neil Patrick R. Michaud wrote: > On Tue, May 29, 2007 at 01:59:33PM +0100, Neil Whiting wrote: >> Hi all, >> >> I have set up several PITS lists using pits-0.21 which have worked well >> for me. >> >> I recently upgraded the installation from 2.1.0 to pmwiki-2.2.0-beta52 >> and have a problem - the (:pitslist:) markup does not display the list as >> it used to - I just see the text "(:pitslist:)". >> The corresponding (:pitsform:) seems to behave correctly as before. > > The pits-0.21 recipe contains the lines (approximately line 269): > > > markup('pitsform','inline','/\\(:pitsform:\\)/e',"Keep(PitsForm(\$pagename))"); > markup('pitslist','directive','/\\(:pitslist\\s*(.*?):\\)/e', > "FmtPitsList('',\$pagename,array('q'=>PSS('$1')))"); > > markup('pitsread','directive','/^('.implode('|',array_keys($PitsLabels)).')\s*:(.*)/', > "<:block><div class='pitspage'><span class='label'>$1:</span>\ > <span class='data'>$2</span></div>"); > > markup('pitstrail','<links','/\\(:pitstrail\\s*(.*?):\\)/e',"PitsTrail(\$pagename,'$1')"); > > For the pitslist and pitsread markups, the 'directive' specification > needs to be 'directives' (with an 's'). Otherwise the markup rule > doesn't get inserted in the correct location. > > The correct form has always been 'directives' (with an 's'), > but versions of PmWiki prior to beta46 would still process > markup rules that had improper 'when' values. Unfortunately, > it would process them at the wrong time, which is why we > tightened up this restriction. > > If you don't want to adjust the pits-0.21.php recipe itself, > it can also be fixed by adding something like the following > to a local customization file: > > Markup('directive', '>split'); > > This explicitly adds a 'directive' markup rule at the same > location that 'directives' would appear. > > Hope this helps, > > Pm _______________________________________________ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users