[xwiki-devs] XWiki - Dynamic Space Name In The Links
Hi, I tried to display the space name dynamically in the links. Example: In the new panel i have give like this [Home>*Main.WebHome*] Basically all the spaces will have WebHome page by default. So i tried to change the space name dynamically. And here what i have given in the panel... [Home>*$doc.space.WebHome*] But it seems not working for me. And it provided me the following *url*http:// <server>:<port>/xwiki/bin/edit/%24doc.space/WebHome?parent=Main.WebHome&editor=wysiwyg Is there any other way to do this...? *OR* I did it wrong...? -- Prathap
On Mon, Jul 7, 2008 at 8:45 AM, Prathap Pandian <[email protected]> wrote:
Hi,
I tried to display the space name dynamically in the links.
Example: In the new panel i have give like this
[Home>*Main.WebHome*]
Basically all the spaces will have WebHome page by default. So i tried to change the space name dynamically.
And here what i have given in the panel...
[Home>*$doc.space.WebHome*]
You should try [Home>${doc.space}.WebHome]. I don't understand what are trying to do with the stars. ${variable} is the "real" Valocity variable syntax and $variable is just a shortcut which does not work sometimes.
But it seems not working for me. And it provided me the following *url*http:// <server>:<port>/xwiki/bin/edit/%24doc.space/WebHome?parent=Main.WebHome&editor=wysiwyg
Is there any other way to do this...? *OR* I did it wrong...?
-- Prathap _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
thanks... -- Prathap On Mon, Jul 7, 2008 at 2:07 PM, Thomas Mortagne <[email protected]> wrote:
On Mon, Jul 7, 2008 at 8:45 AM, Prathap Pandian <[email protected]> wrote:
Hi,
I tried to display the space name dynamically in the links.
Example: In the new panel i have give like this
[Home>*Main.WebHome*]
Basically all the spaces will have WebHome page by default. So i tried to change the space name dynamically.
And here what i have given in the panel...
[Home>*$doc.space.WebHome*]
You should try [Home>${doc.space}.WebHome]. I don't understand what are trying to do with the stars.
${variable} is the "real" Valocity variable syntax and $variable is just a shortcut which does not work sometimes.
But it seems not working for me. And it provided me the following
*url*http://
<server>:<port>/xwiki/bin/edit/%24doc.space/WebHome?parent=Main.WebHome&editor=wysiwyg
Is there any other way to do this...? *OR* I did it wrong...?
-- Prathap _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
participants (2)
-
Prathap Pandian -
Thomas Mortagne