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

eZ Community » Forums » Developer » Placeholder for content aggregation...
expandshrink

Placeholder for content aggregation in templates

Placeholder for content aggregation in templates

Wednesday 08 December 2010 4:41:39 pm - 1 reply

Hello,

is possible to create something like placeholder view helper from Zend Framework in EZ Publish templates? For example aggregation of JavaScript code in JQuery document ready function, or dynamicly added javascript and css files.

I have few pages in site, which are heavily utilized with JS widgets, validations and so on and I dont want to have JS files related to concrete pages loaded everywhere.

EZ Publish 4.3 but EZ Webin in version 1.2

Thanks a lot,
Vebloud

Monday 13 December 2010 12:50:18 am

You can use lazy loading for your JavaScript / CSS files with ezjscore templates functions. Or use JavaScript library like YUILoader for instance to load CSS or JavaScript on demand on pages where needed.

http://share.ez.no/learn/ez-publi...vascript-and-ajax-framework/(page)/6

Modified on Monday 13 December 2010 12:51:49 am by Ɓukasz Serwatka

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from