Petko,<br><br>This worked great, thank you for your help :-)<br><br>--Steve.<br><br><div class="gmail_quote">2009/7/15 Petko Yotov <span dir="ltr"><<a href="mailto:5ko@5ko.fr">5ko@5ko.fr</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Wednesday 15 July 2009 16:17:50 <a href="mailto:stevecrisp@gmail.com">stevecrisp@gmail.com</a> wrote:<br>
> Spotted an issue with the $LastModified page variable picking up last but<br>
> one modification date/time not current. This is only the case when used in<br>
> (:description:) markup in conjection with hover/tooltip text. Let me<br>
> explain my set-up....<br>
><br>
> PmWiki latest 2.2.0<br>
><br>
> Added tooltips to Wiki page links. Tooltip is taken from the text within<br>
> the (:description:) markup for each page it links to. This is what was<br>
> added to the local/config.php file:<br>
><br>
> $LinkPageExistsFmt = "<a class='wikilink' title='{\$Description}'<br>
> href='\$LinkUrl'>\$LinkText</a>";<br>
</div>...<br>
<div class="im">> (:description My Page 2 - last modified on {$LastModified} by<br>
> {$LastModifiedBy} :)<br>
<br>
</div>This happens because the $Description variable is evaluated as text before the<br>
page is saved to a file, not when it is requested. And before the page is<br>
saved, the $LastModified and $LastModifiedBy variables contain the previous<br>
timestamp and the previous author.<br>
<br>
If you set the part "last modified on {$LastModified} by {$LastModifiedBy}" in<br>
the title= attribute of the link, it should work :<br>
<br>
$LinkPageExistsFmt="<a class='wikilink' title='{\$Description} - last modified<br>
on {\$LastModified} by {\$LastModifiedBy}' href='\$LinkUrl'>\$LinkText</a>";<br>
<br>
(:description My Page 2:)<br>
<br>
Note that having apostrophes in your description may break your link titles<br>
and produce invalid HTML. You can fix this by adding to config.php :<br>
<br>
$FmtPV['$Description'] = 'htmlspecialchars(@$page["description"],<br>
ENT_QUOTES)';<br>
<font color="#888888"><br>
Petko<br>
</font></blockquote></div><br>