Excellent, thanks ! Now That's thinking outside the box !! :)

For what it's worth, here's a quick patch showing what I've had in mind for a 
while but never had the time to validate/test:
http://jira.magnolia-cms.com/browse/MAGNOLIA-3242

Cheers,

-g

On Jul 2, 2010, at 11:18, Hay (Husky) wrote:

> 
> Hi everyone,
> 
> When using Freemarker in Magnolia, you often get errors. For example,
> because you tried to use an undefined value and didn't add the
> required '!' symbol. When that happens you see the infamous
> red-on-yellow "FreeMarker template error!". During development, that's
> not a problem, but on a production site you don't want to confuse your
> visitors with cryptic Java errors.
> 
> Unfortunately, it's not that easy to turn those errors off, and you
> probably do want people to report these errors because they might
> indicate a serious bug in your website.
> 
> For this purpose i wrote a small Javascript function that you can use
> to 'prettify' the Freemarker error. It replaces the stacktrace with a
> general error message, but the user can still see the original error
> by clicking on a link. The script requires jQuery, which is included
> in the STK or can be downloaded from jQuery.com. To run in, just add
> it to your $(document).ready() function.
> 
> I've added a Wiki page with the script right here:
> http://wiki.magnolia-cms.com/display/WIKI/How+to+use+Javascript+to+make+Freemarker+errors+less+intrusive
> 
> -- Hay Kranen
> Frontend / internet developer VPRO Netherlands
> 
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to