This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » Forums » Setup & design » Javascript not rendering in literal tag

Javascript not rendering in literal tag

Javascript not rendering in literal tag

Saturday 10 November 2012 12:31:38 pm - 2 replies


I'm trying to insert javascript into a literal tag but ez isn't showing the results.

There's just an empty <P> tag

Any ideas???

Thanks in advance happy.gif Emoticon

Saturday 10 November 2012 1:42:14 pm

It's escaped ( "|wash" ) , allowing this content by default would be a direct security vulnerability.
You can however enable this if you trust all users of the site that have access to edit xmltext ( "richtext" ) fields, by enabling literal class="html". Check settings/content.ini for more info. 

Modified on Saturday 10 November 2012 3:50:19 pm by André R

Thursday 15 November 2012 9:55:50 am

I know it's not ideal to have HTML enabled but I'm the only one who'll be adding the javascript.


I figured out why it wasn't working in the frontend. If you enable literal through the admin content.ini you have to enable it for the admin and the siteaccess seperately

Modified on Thursday 15 November 2012 9:57:47 am by Neo Pixel


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from