DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:targetlink

Target Link Plugin

Compatible with DokuWiki

  • 2018-04-22 "Greebo" yes
  • 2017-02-19 "Frusterick Manners" unknown
  • 2016-06-26 "Elenor Of Tsort" unknown
  • 2015-08-10 "Detritus" unknown

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
2018-08-08
Provides
Syntax
Repository
Source

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)

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: 2018-08-08 08:38 by hokkaidoperson