Hi!
Guillaume Lerouge wrote:
Guillaume
First works fine with "other" Velocity, but not for pages
including the
"force skin" trick as it get redirected to the page holding the snippet.
Use #includeInContext('Other.Page') instead.
Works fine for getting the page included, but SendPageByMail send
corrrectly the page but adding the following error
Error number 4001 in 4: Error while parsing velocity page Main.Donde
Wrapped Exception: Invocation of method 'sendRedirect' in class
com.xpn.xwiki.web.XWikiServletResponse threw exception
java.lang.IllegalStateException @ Main.Donde
<mailbox:///Users/rrodriguez/Library/Thunderbird/Profiles/wm2vak20.default/Mail/mire.environmentalchange.net/InEPEC?number=81591871>3,11?
</xwiki/bin/edit/Main/3%2C11?parent=Main.Donde>
No success or failure message in the panel even though the message has
been sent.
> That's weird. Did you change anything else
than
>
> #set($emailcontent = "
> Author : $xwiki.getUserName($doc.getContentAuthor(), false) | Date :
> $xwiki.formatDate($doc.date, 'MMM dd, yyyy HH:mm') | Email comment :
> $emailcomment
> $doc.getContent()
> $emailpagecomments
> ")
>
> ?
>
I've done again this changes and it works fine: success or failure
message whatever method, $doc.getContent() or $doc.getRenderedContent()
, I use. I don't know where I was wrong. Sorry for the noise.
All the best,
Ricardo
--
Ricardo Rodríguez
Your EPEC Network ICT Team