[xwiki-devs] XWiki - Dynamic Space Name In The Links

Thomas Mortagne thomas.mortagne at xwiki.com
Mon Jul 7 10:37:35 CEST 2008


On Mon, Jul 7, 2008 at 8:45 AM, Prathap Pandian
<prathapmeister at gmail.com> 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
> devs at xwiki.org
> http://lists.xwiki.org/mailman/listinfo/devs
>



-- 
Thomas Mortagne


More information about the devs mailing list