$doc.space or $tdoc.space should do the trick.
Guillaume
On Fri, Jul 1, 2011 at 11:52, Marius Dumitru Florea <
mariusdumitru.florea(a)xwiki.com> wrote:
On 07/01/2011 12:28 PM, Paul Harris wrote:
Hi again,
How do I make the browser bar title appear like this...
pagetitle - spacename - Whatever
I tried to look up the API documentation, but I couldn't see the
documentation on "DocumentReference"
the links are all broken
http://maven.xwiki.org/site/xwiki-core-parent/xwiki-core/apidocs/com/xpn/xw…
this is what i have so far... just missing the name of the document's
space
$tdoc.getRenderedTitle("plain/1.0") -
SPACE HERE - Whatever
$tdoc is an instance of
http://nexus.xwiki.org/nexus/service/local/repositories/releases/archive/or…
. You can check this by printing:
$tdoc.class
(which is Java API since all objects you work with in Velocity are in
fact Java objects)
Of course,
http://nexus.xwiki.org/nexus/service/local/repositories/releases/archive/or…
returns the space name.
Note that I'm accessing the javadoc from
http://platform.xwiki.org/xwiki/bin/view/DevGuide/API .
Hope this helps,
Marius
> thanks,
> Paul
> _______________________________________________
> users mailing list
> users(a)xwiki.org
>
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users