$doc.space or $tdoc.space should do the trick.

Guillaume

On Fri, Jul 1, 2011 at 11:52, Marius Dumitru Florea <
mariusdumitru.flo...@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/xwiki/objects/BaseElement.html
> >
> > 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/org/xwiki/platform/xwiki-platform-oldcore/3.1/xwiki-platform-oldcore-3.1-javadoc.jar/!/com/xpn/xwiki/api/Document.html
> . 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/org/xwiki/platform/xwiki-platform-oldcore/3.1/xwiki-platform-oldcore-3.1-javadoc.jar/!/com/xpn/xwiki/api/Document.html#getSpace%28%29
> 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@xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
> _______________________________________________
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to