plugin:embed
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
plugin:embed [2009-10-21 10:40] – 194.167.50.193 | plugin:embed [2017-02-18 23:32] – ticket 79.121.122.71 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
---- plugin ---- | ---- plugin ---- | ||
Line 12: | Line 12: | ||
similar | similar | ||
tags : include, embed | tags : include, embed | ||
+ | |||
+ | downloadurl: | ||
---- | ---- | ||
- | |||
- | |||
- | |||
===== The idea ===== | ===== The idea ===== | ||
Line 27: | Line 26: | ||
I've developed the plugin under the DokuWiki version of 2006-11-06 and seems to work with version 2007-06-26 as well. | I've developed the plugin under the DokuWiki version of 2006-11-06 and seems to work with version 2007-06-26 as well. | ||
- | OH yeah ! | + | |
===== Download / Installation ===== | ===== Download / Installation ===== | ||
Line 213: | Line 212: | ||
// avoid circular references | // avoid circular references | ||
- | if (! (array_search($id, | + | if (in_array($id, |
- | return false; | + | return false; |
array_push($embedded_pages_by_plugin_embed, | array_push($embedded_pages_by_plugin_embed, | ||
Line 292: | Line 291: | ||
//check if interwiki or email: | //check if interwiki or email: | ||
- | if ((! strpos('>', | + | if (strpos('>', |
return $link; | return $link; | ||
Line 352: | Line 351: | ||
>>> | >>> | ||
+ | |||
+ | Embeds with absolute internal links go wrong; they come out as ns:ns:page instead of just ns:page. | ||
+ | fixed by change line 184 from | ||
+ | } elseif (strpos($link, | ||
+ | to | ||
+ | } elseif (strpos($link, | ||
+ | | ||
+ | ===== Stopped working ===== | ||
+ | |||
+ | I wanted to make a " |
plugin/embed.txt · Last modified: 2024-02-02 08:05 by Aleksandr