[pmwiki-devel] Fwd: RecentChangesFmt, adding a href bookmark to the diff link.
Danny Kimsey
dekimsey at gmail.com
Fri Mar 23 16:56:46 CDT 2007
Sigh, I'll remember to reply properly at some point...
---------- Forwarded message ----------
On 3/23/07, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> 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?
Aquired from the pagerev.php source, I'm altering the $DiffStartFmt to
look like:
$DiffStartFmt="<div class='diffbox'><a name='\$DiffTime'/><div
class='difftime'>
\$DiffTime \$[by] <span class='diffauthor' title='\$DiffHost'>
\$DiffAuthor</span> - \$DiffChangeSum</div>";
>
> > 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
>
Well I used CurrentTime because that was the variable as provided in
the recent changes list, and it seemed to match the diff timedate
string. What is the difference out of curiousity? I didn't (or
missed) where I could find any references to it in pmwiki docs
--
--Danny.
More information about the pmwiki-devel
mailing list