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 » Extensions » ezscriptfiles equivalent for...
expandshrink

ezscriptfiles equivalent for ezscript_load?

ezscriptfiles equivalent for ezscript_load?

Thursday 21 June 2012 1:25:46 pm - 4 replies

ezscriptfiles() + head.js = awesome

<script type="application/javascript">
head.js(
  {concat( "'",
         ezscriptfiles( 
               array(
                 ezini( 'JavaScriptSettings', 'JavaScriptList', 'design.ini' ), 
                 ezini( 'JavaScriptSettings', 'FrontendJavaScriptList', 'design.ini' ) 
                 ) 
             ) | implode( "','" ),
         "'")});
</script>

BUT

this only works for site-wide files.  Any ideas on how to get ezscript_load() as an array of files, without hacking ezjscore/classes/ezjscpacker.php?

Modified on Thursday 21 June 2012 1:35:00 pm by Geoff Bentley

Thursday 21 June 2012 6:13:15 pm

No function for this need afaik, pull request happy.gif Emoticon

Thursday 21 June 2012 7:05:40 pm

Ow yes, a pull-request !

Looking forward to it happy.gif Emoticon

The ultimate guidance tutorial for this : http://share.ez.no/learn/ez-publi...o-contribute-to-ez-publish-using-git

Cheers !

Saturday 23 June 2012 2:56:38 pm

BAM!!

Sunday 24 June 2012 11:35:02 pm

Quote from Geoff Bentley :

BAM!!

What a lovely sound !

And what a lovely pull-request ! Well done Geoff, keep-up !

Cheers,

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from