It's better when it's simple

User Tools

Site Tools


shorty Plugin

Compatible with DokuWiki


plugin Generates a short url to the current page using a url shortening service.

Last updated on
Syntax, Helper

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, shorturls

This plugin automatically generates a Short_URL link to the current page.

Currently Shorty supports the following url shortening services:

  • tinyURL
  • yourls


Download the plugin using the plugin manager or manually from the download link above.


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


cURL Extension

:!: Important :!:
It is mandatory that you have installed the cURL Extension for PHP.

You can check if the extension is installed using the following code:

if ( function_exists('curl_init') ) {
  echo 'cURL is installed';
else {
  echo 'cURL is NOT installed';


The plugin provides different url shortening services:

  • tinyURL
  • yourls

Select the default service in the config manager.

Shorty supports a few authorization protocols on services providing such functionality. Depending on the service you plan to use, it may be necessary to register and get an access token.

service Authorization more info
OAuth token
tinyURL none
yourls Signature token


Basic syntax usage:

~~shorty [service]~~ 

where [service] can be one of the following options:

option service output example
uses the default service
default uses the default service uses the service uses the service uses the service
tinyurl uses the service
yourls uses the yourls self hosted service


Using the default service:

The short link to this page is: ~~shorty~~.

Result: The short link to this page is:

Using a specific service:

The short link to this page is: ~~shorty

Result: The short link to this page is:


Change Log

  • 2014-03-19
    • add yourls service, thanks to BlackRocket!
    • Set default service to tinyurl in order to work out of the box
  • 2014-03-14
    • Initial version

Known Bugs and Issues

  • please let me know :-)

ToDo/Wish List

  • To add support for more services:


plugin/shorty.txt · Last modified: 2018-06-05 23:43 by Klap-in