[xwiki-users] an easy one - space in title
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/xwi... this is what i have so far... just missing the name of the document's space $tdoc.getRenderedTitle("plain/1.0") - SPACE HERE - Whatever thanks, Paul
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/xwi...
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... . 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... 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 [email protected] http://lists.xwiki.org/mailman/listinfo/users
$doc.space or $tdoc.space should do the trick. Guillaume On Fri, Jul 1, 2011 at 11:52, Marius Dumitru Florea < [email protected]> 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/xwi...
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... . 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... 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 [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
participants (3)
-
Guillaume Lerouge -
Marius Dumitru Florea -
Paul Harris