Cookbook /
LinkPageCreateFmtTooltip
Summary: How to add a tooltip for a link to a non-existent page
Version:
Prerequisites:
Status:
Maintainer: KAL
Categories: Links
Discussion: LinkPageCreateFmtTooltip-Talk
Question
How do I add a tooltip (small popup text that is displayed when you run with the mouse over a link) for a link to a non-existent page?
Answer
Add a title-attribute to the variable $LinkPageCreateFmt by adding the following statement to your local/config.php or farmconfig.php:
$LinkPageCreateFmt =
"<a class='createlinktext'
title='$[page not found - click link to create page]'
href='\$PageUrl?action=edit'>\$LinkText</a>
<a class='createlink'
title='$[page not found - click link to create page]'
href='\$PageUrl?action=edit'>?</a>";
(the second title-attribute applies to the "?" in the link)
See Also
Contributors
- KAL, 27-Oct-2004
Comments
See discussion at LinkPageCreateFmtTooltip-Talk