"[[Wiki Home>>$services.model.resolveDocument('',
'default')]]" did not
work. It resolved to the following URL. (I X'ed out the IP address.
http://XXX.XXX.XXX.XXX/wiki/wsuorgtemplate/create/%24services.model/resolv
eDocument%28%27%27%2C+%27default%27%29?parent=XWiki.XWikiPreferences
However, "[[Wiki Home>>xwiki:Main.WebHome]]" did work!
Thank you.
________________________________________
Tim Hays
Sr. Systems Integrator
Strategic Management Systems
Wayne State University
Phone: (313)577-6871 <callto:313)577-8665>
Fax: (313)577-6644 <callto:313)577-8665>
-----Original Message-----
From: users [mailto:users-bounces@xwiki.org] On Behalf Of Marius Dumitru
Florea
Sent: Thursday, February 27, 2014 12:00 PM
To: XWiki Users
Subject: Re: [xwiki-users] XWiki Syntax 2.1 Link to root wiki
Try this:
[[Wiki Home>>xwiki:Main.WebHome]]
and if you are in a Velocity macro/context, the best option is
[[Wiki Home>>$services.model.resolveDocument('', 'default')]]
Hope this helps,
Marius
On Thu, Feb 27, 2014 at 6:43 PM, DeHaynes <ew1560(a)wayne.edu> wrote:
I am trying to setup a wiki template that contains a
menu. In the
menu I want to create a link to Main.WebHome of the root wiki. I have
tried:
[[Wiki Home>>Home:Main.WebHome]]
[[Wiki Home>>localhost:Mian.WebHome]]
I tried the 2nd one because localhost is listed as the alias for the
root wiki. Unfortunately neither of these worked. Can anyone tell me
the correct syntax to use?
I am using XWiki 5.4.1 on Ubuntu with MySQL and Tomcat 7. I just did
the vanilla deb install. I have not change the main wiki name or alias.
--
View this message in context:
http://xwiki.475771.n2.nabble.com/XWiki-Syntax-2-1-Link-to-root-wiki-t
p7589353.html Sent from the XWiki- Users mailing list archive at
Nabble.com.
_______________________________________________
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