DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:relativens

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:relativens [2009-07-27 20:59] 83.145.240.159plugin:relativens [2018-06-05 22:54] (current) – [Download and Installation] Klap-in
Line 11: Line 11:
 conflicts  : relativelinks conflicts  : relativelinks
 similar    : relativelinks similar    : relativelinks
-tags       : relative id syntax media links namespaces+tags       : links namespace 
 + 
 +downloadurl: http://www.pelam.fi/published_sources/dokuwiki/relativens-2008-12-31.zip
 ---- ----
  
Line 18: Line 20:
 ===== Download and Installation ===== ===== Download and Installation =====
  
-Download and install the plugin using the [[plugin:plugin|Plugin Manager]] using the following URL. Refer to [[:Plugins]] on how to install plugins manually.+Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually.
  
   *  [[http://www.pelam.fi/published_sources/dokuwiki/relativens-2008-12-31.zip]]    *  [[http://www.pelam.fi/published_sources/dokuwiki/relativens-2008-12-31.zip]] 
Line 31: Line 33:
  *  *
  * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)  * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
- * @author     Peter Lamberg (pe78 [at] lodju.dyndns dot org)+ * @author     Peter Lamberg (pe78 [at] pelam dot fi)
  * @based_on   "pagespace" plugin by Symon Bent and "baselink" plugin Robert Meerman. Contains portion of code from DokuWiki source file handler.php.  * @based_on   "pagespace" plugin by Symon Bent and "baselink" plugin Robert Meerman. Contains portion of code from DokuWiki source file handler.php.
  */  */
Line 44: Line 46:
     function getInfo() {     function getInfo() {
         return array('author' => 'Peter Lamberg',         return array('author' => 'Peter Lamberg',
-                     'email'  => 'pe78 [at] lodju.dyndns dot org',+                     'email'  => 'pe78 [at] pelam dot fi',
                      'date'   => '2008-12-30',                      'date'   => '2008-12-30',
                      'name'   => 'relativens',                      'name'   => 'relativens',
Line 132: Line 134:
  
 </code> </code>
 +
 =====PHP4===== =====PHP4=====
  
Line 166: Line 169:
 --//pike 200901// --//pike 200901//
  
 +I have also noticed some weird behaviour with media links...
 +
 +I think I can see why that "mp3play" link would not work. The plugin assumes that:
 +  * Only "internal links" should be "relativized"
 +    * Links with special syntax like "mp3play>" are not considered"internal links"
 +  * Except, that all media links are considered "internal"
 +
 +Then I think it proceeds and mucks up that mp3play> prefix by inserting ./ at the wrong place
 +
 +The code that mangles the link to be relative should be made more sensible, or the assumption
 +that media links are always relative should be removed...
 +
 +I'll try to fix this and the php4 compatibility next time I need to hack our internal wiki...
 +
 +--//Peter 200907// 
plugin/relativens.1248721141.txt.gz · Last modified: 2009-07-27 20:59 by 83.145.240.159

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