Forums / Developer / Javascript in tpl file

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Javascript in tpl file

Author Message

DeAndre Johnson

Tuesday 16 December 2008 9:45:16 am

Is there a way to add javascript in tpl file without breaking site?

I am, because I choose to be!

Damien Pobel

Tuesday 16 December 2008 10:12:16 am

Hi,

yes ! you should have a look to the literal template function.

[1] http://ez.no/doc/ez_publish/technical_manual/4_0/reference/template_functions/miscellaneous/literal

Damien
Planet eZ Publish.fr : http://www.planet-ezpublish.fr
Certification : http://auth.ez.no/certification/verify/372448
Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish