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 » General » 4.7: JS for single page?

4.7: JS for single page?

4.7: JS for single page?

Monday 18 May 2015 1:39:09 pm - 1 reply

How can I add Javascript only for one single page?

Monday 18 May 2015 2:22:00 pm

Hello Jyrgen,

Welcome to the eZ Community!

The short answer is YES! I do this myself quite regularly for customer projects.

You can use the 'ezscript_require' operator to include a javascript file only on a specific template which is used on a specific page.

Technical details to study and learn from:

Educational article on how to use ezjscore and ezscript_require operator:

I hope this helps!



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

36 542 Users on board!

Forums menu

Proudly Developed with from