Hi Ricardo,

> Any Velocity statement I've tried with generates the same error.
>
> Perhaps if must be avoided to send Velocity code and send instead a
> warning or something like that. Just an idea. It seems that
> $doc.getRenderedContent() doesn't like this Velocity stuff. Please, do
> you know how this error could be avoided? I am planning to use it a site
> where we many pages uses the code snippet you proposed and other
> Velocity statements.


2 choices I think :

   1. Remove the script from the pages, put them in other pages and use
   #includeTopic('Other.Page')
   2. Replace getRenderedContent() with getContent() (u'll have
   text-onlye pages showing up with wiki markup but at least they won't break)

Guillaume
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to