[pmwiki-devel] RecentChangesFmt, adding a href bookmark to the diff link.

Patrick R. Michaud pmichaud at pobox.com
Fri Mar 23 13:40:51 CDT 2007


On Fri, Mar 23, 2007 at 02:23:06PM -0400, Danny Kimsey wrote:
> I'd like for our recentchanges page to offer links to the specific
> diff that was last written.  Implmenting the <a name=''> was easy
> enough, however altering the link for the RecentChangesFmt array seems
> troublesome.  

What are you using for the <a name=''> parameter?

> the FmtPageName function appropriately.  Below I have a snippet of the
> context in where this is being used.  This currently returns a blank
> string for the diff link. A simple [[$Group.$Name?action=diff | diff]]
> however works here just fine.  So there must be an issue with the
> FmtPageName's parsing of my wiki link format.
>
> $RecentChangesFmt["Contributions.$AuthorNameWithOutSpaces"] =
>       '* [[$Group.$Name]]
> ([[${Group}.${Name}?action=diff#${CurrentTime} | diff]])'
>       .' . . . $CurrentTime - [=$ChangeSummary=]';

You probably mean {$CurrentTime} instead of ${CurrentTime}.
However, I think you might be better off using {$Now} (both
for the <a name=''> part and for the link in RecentChangesFmt).

Pm



More information about the pmwiki-devel mailing list