Hi,

thanks for the reply, I got it working.

But I changed getExternalURL() to getURL(), not getURL("view").

Is there any difference it the that?

Regards

        Stefan

--
Stefan Völkel - Program Manager - Scalix - a Xandros Company
Platz der Einheit 1 - 60327 Frankfurt am Main - Germany
Office +49 69 97503 156 - Fax +49 69 97503 200 - Mobile +49 173 7 36 65 
84


> -----Original Message-----
> From: Jean-Vincent Drean [mailto:[EMAIL PROTECTED]
> Sent: Dienstag, 22. April 2008 18:29
> To: XWiki Users
> Subject: Re: [xwiki-users] WatchList and alternative URL
> 
> Hi,
> 
> Since some xwiki information (like server name) relies on requests
> sent by clients I'm afraid there's no simple solution for this issue.
> What you can do is modifying the mentionned mailTemplate
> (XWiki.WatchListMessage) by going to
> 
http://putyourservernamehere/xwiki/bin/edit/XWiki/WatchListMessage?edit
> or=object
> and replace all the doc.getExternalURL("view") by something like
> http://putyourservernamehere/${doc.getURL("view")}
> 
> JV.
> 
> On Tue, Apr 22, 2008 at 4:08 PM, Stefan Völkel
> <[EMAIL PROTECTED]> wrote:
> > Hi List,
> >
> >  I tracked down the creation of the mail to WatchListJob.java
> >  sendNotificationMessage().
> >
> >  I think the data I am looking for is in here
> >
> >         vcontext.put("documents", updatedDocuments);
> >
> >
> >  Which is passed to there:
> >
> >         // Send message from template
> >         emailService.sendMailFromTemplate(mailTemplate, sender,
> >  emailAddr, null, null, language,
> >             vcontext, context);
> >
> >  Do need to change the data before passing it to emailService, or 
can
> >  change a template to do this (if yes which)?
> >
> >  Regards
> >
> >
> >         Stefan
> >  --
> >  Stefan Völkel - Program Manager - Scalix - a Xandros Company
> >  Platz der Einheit 1 - 60327 Frankfurt am Main - Germany
> >  Office +49 69 97503 156 - Fax +49 69 97503 200 - Mobile +49 173 7 
36
> 65
> >  84
> >
> >
> >
> >
> > > -----Original Message-----
> >  > From: Stefan Völkel
> >  > Sent: Donnerstag, 17. April 2008 14:53
> >  > To: '[email protected]'
> >  > Subject: WatchList and alternative URL
> >  >
> >  > Hi List,
> >  >
> >  > I need to alter the URL the contained in the WatchList eMails.
> >  >
> >  > Our machine is behind am apache mod_proxy setup, this reachable
> like
> >  > this:
> >  >
> >  >       http://foo.com/
> >  >
> >  > The URLs un the eMails will contain something like this:
> >  >
> >  >       http://foo.com:8081/
> >  >
> >  > which is not reachable from the outside.
> >  >
> >  > I tried to locate the spot where these URLs are generated, but 
was
> >  > unable to find it.
> >  >
> >  > Can someone please point me to a place, document, ... where I can
> find
> >  > how to change this?
> >  >
> >  > thanks in advance,
> >  >
> >  >       Stefan
> >  >
> >  > --
> >  > Stefan Völkel - Program Manager - Scalix - a Xandros Company
> >  > Platz der Einheit 1 - 60327 Frankfurt am Main - Germany
> >  > Office +49 69 97503 156 - Fax +49 69 97503 200 - Mobile +49 173 7
> 36
> >  65
> >  > 84
> >  >
> >  >
> >
> >
> >  _______________________________________________
> >  users mailing list
> >  [email protected]
> >  http://lists.xwiki.org/mailman/listinfo/users
> >
> 
> 
> 
> --
> Jean-Vincent Drean
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/users


_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to