We use a naming convention on pages in our wiki, where each page name is
prefixed with the project name and suffixed with the page type. Project
pages are just suffixed with the word 'Project'. It has some limitations,
but it works for us :)

So I created a simple plugin that, given a page name, strips the prefix and
suffix as appropriate. I (confusingly) called it 'PageName'. It works like
this:

[{PageName}]

If the name of the page is 'My Project Section 5 Specification', the macro
strips off the 'My Project' (because there is a page called 'My Project' it
assumes that is the prefix) and the word 'Specification' because that is the
last word in the page name (page types are always one word).

Is it possible to capture the output of a macro in a page variable, as
described in (
http://lwa08.informatik.uni-wuerzburg.de/Wiki.jsp?page=WikiVariables)?

[{SET name='foo'}]
[{$name}]

returns 'foo'

What I want is:

[{SET name='[{PageName}]'}]
[{$name}]

Unfortunately, all I get is 'PageName'.

-- 
Bobman

Reply via email to