DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:embedover

embedover Plugin

Compatible with DokuWiki

Lemming, Anteater, Rincewind, Angua, Adora Belle, Weatherwax, Binky, Ponder Stibbons, Hrun, Detritus, Elenor of Tsort, Frusterick Manners, Greebo

plugin Display an external URL in a popup over DokuWiki page

Last updated on
2016-02-07
Provides
Syntax

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

Tagged with embed, javascript, links, popup

Download and Installation

Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.

Usage

Embedover uses these delimiters {( and )}. You must first define the URL which will be used when clicking on the keywords by using {(url:http://your.url.here/the/page.html?query=)}. Then you can use it in keywords {(keyword)} : a click on the keyword will display a popup with the url http://your.url.here/the/page.html?query=keyword.

In addition, you may want to mix several URLs. You can do that with modes. The syntax is mode!. So to define a URL for the mode 'modetest', {(url:modetest!yoururlhere)} and to use it in a keyword : {(modetest!keyword)}. Note that the URL definition must take place before its first utilisation.

If you want to display another text than the keyword, you can use | as in regular DokuWiki link syntax : {(keyword|displayed text)}.

You can also specify the style of the popup displayed, as its width, or any valid CSS style, by using {(style: width: 400px; )}.

Example :

{(url:http://fr.wiktionary.org/w/index.php?title=)}
{(url:en!http://en.wiktionary.org/w/index.php?title=)}
{(style:width:700px;height:500px;overflow:scroll;)}
{(style:en!width:700px;height:500px;overflow:scroll;)}
{(click|Click)} on a {(en!word)} to have its {(definition)}.

Note : if the page you link is on the same domain, the height will be automatically set according to the real height of the included content. This is not allowed by JavaScript for other domains, for security reasons.

Feature Requests

What about an icon to close the window? 13/04/2016 by Ejetorix. –> Sorry I am seeing just today (10/01/2019) your feature request. Basic behavior is to click again on the item that opened the window to close it, but if a close button is still useful to you, please report to https://github.com/rpeyron/plugin-embedover/issues (I will then be notified)

plugin/embedover.txt · Last modified: 2023-10-30 23:07 by Klap-in

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki