[pmwiki-users] Displaying number of attachments?

Noel Llopis nll_pub at convexhull.com
Sun Jan 30 15:56:25 CST 2005


On Sunday 30 January 2005 11:27, Patrick R. Michaud wrote:
> Solution 1:  Use <!--markup:...--> in the template, as in
>
>      <a href='$PageUrl?action=diff'
>        title='$[History of this page]'>$[History]</a>
> <!--markup:{$Rev}--> |
>
> Solution 2:  Add the following to config.php
>
>    $FmtP['/\\$PageRevisions/e'] =
>      '@$PCache[$pagename]["rev"]+0';
>
> Then you can use $PageRevisions in a template:
>
>      <a href='$PageUrl?action=diff'
>        title='$[History of this page]'>$[History]</a> $PageRevisions |

Thanks. That worked perfectly (the second solution especially--the first one 
inserts <p></p> around the markup, which screws up the formatting).

On this same vein, how would I go about displaying the number of attachments 
for a particular page? (I have changed attachments to be associated with a 
single page rather than with the whole group which I think it's the default 
behavior).

Thanks!


--Noel
Games from Within
http://www.gamesfromwithin.com



More information about the pmwiki-users mailing list