@KP there's a "themedJS" now. In SS4 you can no longer assume there's a single theme, since they cascade
@null - Cool yeah I saw that and have used, what about in these situation where using javascriptTemplate
:
$vars = [ "MemberID" => Security::getCurrentUser()->ID, ]; Requirements::javascriptTemplate("<my-module-dir>/javascript/some_file.js", $vars);
Looks like you would still have to hard code in the actual theme location?
not sure of the exact syntax, but it's something like mint-base:javascript/some_file.js
if coming from a theme or subtheme
@Jeremy Luu has joined the channel
Thanks!
Hi Guys, after combining the css files i got 403 error
i got this settings.
…
SilverStripe\View\Requirements_Backend: combine_in_dev: true combine_hash_querystring: true default_combined_files_folder: 'bundle'
Please log an issue on github :)
but first check it's not your settings via web server configuration if you're doing something that might be considered 'not default' (or have edited the .htaccess file for example).
My suspicion is that it might be to do with versioning and publishing files though.