Skip to content

Instantly share code, notes, and snippets.

@lucasdidthis
Created August 13, 2015 07:46
Show Gist options
  • Save lucasdidthis/25d03756004fd4617461 to your computer and use it in GitHub Desktop.
Save lucasdidthis/25d03756004fd4617461 to your computer and use it in GitHub Desktop.
How to bundle Javascript-files with Contao CMS
<?php
/* COMBINE THESE JS-FILES */
$GLOBALS['TL_JAVASCRIPT'][] = $GLOBALS['TL_CONFIG']['uploadPath'] . '/theme_files/js/filename.js|static';
$GLOBALS['TL_JAVASCRIPT'][] = $GLOBALS['TL_CONFIG']['uploadPath'] . '/theme_files/js/filename2.js|static';
/* ... */
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment