Ir al principioc | Ir al final
Home

TWiki
TWiki.AliasPluginr1.14 - 10 Oct 2006 - 08:15 - RicardoDeLosSantosabajo

Start of topic | Skip to actions

Alias Plugin

http://twiki.org/cgi-bin/view/Plugins/AliasPlugin

This plugin allows you to create Aliases for already existing topis. It will be easier then to link to a topic because you don't have to write the full path.

If you write down a WikiWord which is registered as an alias, it will then act as a link to the topic it is assigned to.

Non WikiWord may optionally be used as alias.

An alias must be prefixed by one of:

  • A white space character
  • One of: - = * # & , ; . : / ( ) ] { } + _ >

Note especially, an alias can not be prefixed by: <[

Configuration of this plugin is done by writing your aliases and the topic they should point to in the configuration table on this page. Note, that you have to to specify the full 'path' to the existing topic for making the aliases work correctly in all Webs.

If you want to prevent an alias to become a link you can use the <nop> tag

Examples

  • Just type 'MySelf' and it will become a link to 'Main.MyFullUsername' if defined as an alias

AliasPlugin Global Settings

  • Set SHORTDESCRIPTION = Define aliases which will automatically extend to valid wiki links

  • Debug:
    See output in data/debug.txt
    0 ~ No debug
    1 ~ Normal debug
    2 ~ Detailed debug
    • Set DEBUG = 2

  • Allow non TWiki words to become links
    • Set ACCEPT_NON_TWIKI_WORD_ALIASES = 1

Plugin Installation Instructions

Note: You do not need to install anything on the browser to use this plugin. The following instructions are for the administrator who installs the plugin on the server where TWiki is running.

  • Download the ZIP file from the Plugin web (see below)
  • Unzip AliasPlugin.zip in your twiki installation directory. Content:
    File: Description:
    data/TWiki/AliasPlugin.txt Plugin topic
    lib/TWiki/Plugins/AliasPlugin.pm Plugin Perl module
  • Test if the installation was successful:
    • AlPlug? should be a link to TWiki.AliasPlugin
    • If you set the variable ACCEPT_NON_TWIKI_WORD_ALIASES on this page, then MRX should also be a link to TWiki.AliasPlugin
  • Developers test:
    • -MRX MRX MRX #MRX&MRX,MRX×MRX.MRX:MRX/MRX(MRX)MRX{MRX}MRX+MRX_MRXMRX[MRX]

Known Bugs

Plugin Info

Plugin Author: TWiki:Main/OthelloMaurer
Plugin Version: 1 Dec 2003
Change History:  

1 Dec 2003:
  • No WikiWord aliases as an option
  • More alias prefixes allowed
    TWiki:Main.NielsKoldso
  • 16 Oct 2003: Speedup
    09 Oct 2003: Initial Version
    CPAN Dependencies: none
    Other Dependencies: none
    Perl Version: 5.005
    Plugin Home: http://TWiki.org/cgi-bin/view/Plugins/AliasPlugin
    Feedback: http://TWiki.org/cgi-bin/view/Plugins/AliasPluginDev

    Related Topics: TWikiPreferences, TWikiPlugins

    -- TWiki:Main/OthelloMaurer - 09 Oct 2003
    arriba


    Estás aquí: TWiki > AliasPlugin

    arriba

    Copyright © 2004 por los autores que han contribuido al desarrollo de esta web. Todos los materiales son propiedad de sus respectivos autores.
    Para cualquier consulta o sugerencia contactar con WebMaster