DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:uparrow

This is an old revision of the document!


Uparrow Plugin

Compatible with DokuWiki

> 2009-02-14, 2008-05-05

plugin This simple plugin shows an arrow-image which links to the top of the current page

Last updated on
2009-02-21
Provides
Syntax, Action
Repository
Source

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 links, navigation, section

Support the ongoing development of DokuWiki Plugins and Templates and buy me a coffee ;-) (Suggested: 3€ for a regular or 5€ for big latte with caramel).

Installation

Download the tarball and unpack it into <dokuwiki>lib/plugins. The folder will contain:

  • .tgz Plugin Manager

You can install the plugin via git.

% cd <dokuwiki>/lib/plugins
% git clone git://github.com/chimeric/dokuwiki-plugin-uparrow.git uparrow

Configuration

You can choose which image to use by putting it into <dokuwiki>lib/plugins/uparrow/images and changing the image name in the configuration manager. The plugin comes with 3 default images. You can also configure the plugin to automatically add an up link after each section (NOTE: this could take a while on really large pages, but it only happens when the instructions of a page are regenerated and cached again, normally after an edit occurs or you use &purge. If you activate this option you should invalidate the cache of the wiki to make the changes apply!).

image name
tango-big.png
tango-medium.png
tango-small.png

Syntax

~~UP~~

Demo

You can see the plugin in action here.

Changelog

A complete changelog is available here

Discussion

Kauê Silveira: for compatibility with s5 plugin:

    function render($mode, &$renderer, $data) {
        global $lang;
 
       	if(preg_match("/do=export_s5/", $_SERVER["REQUEST_URI"])) return false;
 
        if($mode == 'xhtml'){

If you don't want uparrow to be print, just create a print.css file in yourdokuwiki/lib/plugins/uparrow with these lines :

div.dokuwiki div.plugin_uparrow {
  display: none;
}

Thanks for this useful plugin. I have enabled uparrow globally via the configuration manager, but would like to disable it on certain page sections - here is what I mean (as at 30 July 2010). Say you have quite short sections near the top of a page - the uparrow is pointless in that case. Is there a way to do that? — Darryl Penny 2010/07/30 11:56

plugin/uparrow.1280484335.txt.gz · Last modified: 2010-07-30 12:05 by dishwasher

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