Thank you for the information. I was able to to go directly to the
Invitation.InvitationConfig Document and see where I could edit the snippet of
code that accesses the 'guestsActionsPage'. (The Velocity code resides in an
object of type "Invitation.WebHome" and there is an item titled "Email message
body HTML template"). But I don't see anywhere that I can actually change the
value of guestsActionsPage itself.
So I can't find where "$config.get("guestsActionPage") is actually defined. Is
somewhere that I can modify its value? Or could it be hard-coded into the
application?
I also looked at the XWiki.XWikiServerXwiki document and found an object of
type XWikiServerClass. This object has a property named "Server" that is set
to "localhost". But that's not what the getExternalURL method seems to be
using (it is getting a value that matches the short hostname). Is this the
property that you were referring to in your answer?
Thank you again for your help.
-Eric
-----Original Message-----
From: users [mailto:[email protected]] On Behalf Of Eduard Moraru
Sent: Thursday, December 17, 2015 5:51 PM
To: XWiki Users <[email protected]>
Subject: Re: [xwiki-users] Documentation on Velocity binding for 'config'
object?
Hi,
I don`t know the code of the app in question, but specifically to your
questions:
* the document "Invitation.InvitationConfig" seems to be the one holding the
configuration object with the "guestsActionsPage" property
* getExternalURL uses the server configuration that you have set in your wiki's
descriptor located in the main wiki at "XWiki.XWikiServerXwiki" (for the main
wiki) or in "XWiki.XWikiServerWikiname" (for a subwiki).
Hope this helps,
Eduard
On Thu, Dec 17, 2015 at 8:36 PM, deltamind106 <[email protected]> wrote:
> There is a snippet of Velocity code in the XWiki invitation email
> template that looks like this:
>
>
>
> *$xwiki.getDocumentAsAuthor($config.get("guestsActionsPage")).getExter
> nalURL())*
>
> Where is the 'config' binding for Velocity documented? If I want to
> change the value for "guestsActionPage", where would make this change?
>
> How does the "getExternalURL" method work? Currently, it seems to be
> using the short hostname in the URL it returns, which will not work
> for us since that particular hostname is not published on our DNS
> server. So I need to change the behavior of "getExternalURL" so that it uses
> an IP address.
> Where would I do that?
>
> Thank you in advance for any help you can provide.
> -Eric
>
>
>
> --
> View this message in context:
> http://xwiki.475771.n2.nabble.com/Documentation-on-Velocity-binding-fo
> r-config-object-tp7597271.html Sent from the XWiki- Users mailing list
> archive at Nabble.com.
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/users
>
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users