incubator-jspwiki-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Juan Pablo Santos Rodríguez" <>
Subject Re: aliases?
Date Wed, 02 Jul 2008 21:44:43 GMT
Hi Bob,

may be interwiki links could help you with aliases? i.e., by default typing
[Google:Bob], should be converted to
Check both (Interwiki links section, lines 615-650) and

regarding the custom footer, as Janne said, you can implement your own
PageFilter or extend BasicPageFilter to add your custom markup (overriding
preTranslate method, for example). Another way could be using InsertPage
plugin, available in the core distro. Initial code and some explanations at


2008/7/2 Murray Altheim <>:

> Bob Paige wrote:
> [...]
>> AliasPlugin is a type of marco feature that allows you to define new
>> plugins
>> on the fly. For example, I might define an alias called 'google' with a
>> value of "$1". Thus, whenever I put in the
>> wiki markup "<<google jspwiki>>" (which is how you call a plugin in
>> TiddlyWiki) it will insert "". This
>> also works with wiki markup; I could use the aliasPlugin to insert wiki
>> markup which is then interpreted by the wiki engine.
>> As I work on the wiki for my work, I find myself putting the same footers
>> on
>> many pages, for example:
>> ----
>> !!!Pages referencing me
>> [{ReferringPagesPlugin}]
>> It would be useful to define a macro that would resolve as this text,
>> allowing me to redefine this footer without having to re-edit all the
>> pages
>> that use it.
>> Does such a beast exist? If not, any leads on how to write it?
> Bob,
> Since aliases need to be global across the entire wiki you'd need a
> manager to collect them as well as to flag conflicts (e.g., if a
> user creates an alias that already exists, their plugin would fail
> and return an error message).
> The manager would be a singleton (for the wiki, not the JVM), and
> there'd be a plugin to declare aliases. You'd then need some way to
> use aliases, probably either a filter or a plugin that would access
> the manager and obtain the replacement text.
> You could (as with any plugin) restrict the creation of aliases to
> certain people via ACL or only authenticated users).
> You might look into the TagPlugin (which has a TagManager) as a
> model.
> I also note that John Volkar has donated an AliasPlugin to the set
> of CeryleWikiPlugins
> though that doesn't do what you're asking for, just reverse the
> current page alias feature available in JSPWiki, i.e., you declare
> on the page its own aliases.
> Hope that is helpful.
> Murray
> ...........................................................................
> Murray Altheim <murray07 at>                           ===  =
> =
>                                     = =
>  ===
> SGML Grease Monkey, Banjo Player, Wantanabe Zen Monk               = =  = =
>      Boundless wind and moon - the eye within eyes,
>      Inexhaustible heaven and earth - the light beyond light,
>      The willow dark, the flower bright - ten thousand houses,
>      Knock at any door - there's one who will respond.
>                                      -- The Blue Cliff Record

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message