DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:targetlink

Target Link Plugin

Compatible with DokuWiki

Greebo, 2018-04-22

plugin Make links with specified targets not depending on the configuration. e.g.: The links usual open in the same tab, but this link opens in a new tab.

Last updated on
2019-03-13
Provides
Syntax
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, target

:!: このページを日本語でご覧頂けます。(This page is also available in Japanese.)
:!: I’m not a native English speaker, so this page may contain some mistakes in English sentences.

Summary

By using this plugin, you can specify targets to the links, not depending on the configuration of your wiki.

Installation

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

Examples/Usage

For example, if the conf target>>wiki is null:

[[page1|This link]] opens in the same tab, but [[+tab|page2|this one]] opens in the new tab, and so does [[target=_blank|page2|this one]].

If the conf target»extern is “_blank”:

[[https://www.dokuwiki.org/|This link]] opens in the new tab, but [[target=_self|https://github.com/|this one]] opens in the same tab.

Currently this plugin works with internal, external, interwiki, and windows share links.

See the plugin in action here (sorry but this page is available only in Japanese).

Syntax

[[+tab|pagename]] (opens in the new tab)
[[+tab|pagename|linkname]] (opens in the new tab)
[[target=targetname|pagename]] (opens in the specified target)
[[target=targetname|pagename|linkname]] (opens in the specified target)

Development

Change Log

  • 2018-07-02
    • Initial release (but I published this page in July 17, because I was lazy)
  • 2018-08-08
    • Updated (defined the function when the rendering mode is metadata)
  • 2019-03-13
    • Bug fix

Known Bugs and Issues

(Currently none)

ToDo and Wishlist

I'll do my best if you think this leaves something to be desired

Contact Me

If you find some problems in this plugin, you can make issue topics on the GitHub page, or if you wanna contact me for other things, you can contact me by:

Discussion

plugin/targetlink.txt · Last modified: 2019-03-13 06:44 by hokkaidoperson

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