The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Konstrukt::Plugin::wiki::markup::link::file - Plugin to handle links to internal files.

SYNOPSIS

See "SYNOPSIS" in Konstrukt::Plugin::wiki::markup::linkplugin.

DESCRIPTION

This one will be responsible for all internal files.

A link to the file will be created. If the target file doesn't exist, the user may upload it.

Note that the filename will be normalized. All characters but letters, numbers, parenthesis and dots will be replaced by underscores.

EXAMPLE

Implicit

        file:somefile.zip
        

Explicit

        [[file:some other file.rar|with a different link text]]
        

METHODS

matching_regexps()

See "matching_regexps" in Konstrukt::Plugin::wiki::markup::linkplugin for a description.

init

Initialization.

install

Installs the templates.

Parameters:

none

handle()

See "handle" in Konstrukt::Plugin::wiki::markup::linkplugin for a description.

This one uses the same trick as "handle" in Konstrukt::Plugin::wiki::markup::link::article.

Parameters:

  • $link - The link string.

prepare

Won't do anything in the prepare run.

Parameters:

  • $tag - Reference to the tag (and its children) that shall be handled.

execute

Here we will decide which link should be returned. Either one for dead links or one for links, that are alive.

Parameters:

  • $tag - Reference to the tag (and its children) that shall be handled.

AUTHOR

Copyright 2006 Thomas Wittek (mail at gedankenkonstrukt dot de). All rights reserved.

This document is free software. It is distributed under the same terms as Perl itself.

SEE ALSO

Konstrukt::Plugin::wiki