Questions answered by this recipe
Can I create a popup for words on my pages, like against a glossary of terms for example?
Create CSS popups over words on a page based on PTVs
This recipe depends upon MarkupToUnstyled.
Create a page with PTVs on it, where the PTV is the name or phrase you want to get a hover popup on, and the value is what the popup should say. For example PmWiki/Glossary.
Because a PTV must be essentially be a "word", in order to do phrases, you merely create the name of your PTV using double-underscores. Thus creating
Local__configuration__file if you want to match that phrase. If enabled (see below) on the page of PTVs itself, it will substitute a space for the double underscores.
If you don't want to enable the popups on the page of PTVs itself, you can always enable the following markup for that page instead (implementation details not provided here):
Markup('__', '>inline', '/__/', ' ');
Simply reference the page of PTVs you want to activate on a page.
Change log / Release notes
If the recipe has multiple releases, then release notes can be placed here. Note that it's often easier for people to work with "release dates" instead of "version numbers".
- 2017-07-24 Change >restore to <restore. "Keep" needs to mean "keep". Fixes problem of markup rewriting edit text area on edit when Preview is selected.
- 2017-07-26 Optimizations suggested by Petko. Thanks Petko!
- Petko (optimization)
See discussion at PTVPopups-Talk