Add config options to specify where javascripts and front-end config is loaded.#24
Add config options to specify where javascripts and front-end config is loaded.#24wakes wants to merge 5 commits into
Conversation
How do you do this properly? Composer should work it out apparently, never works for me though.
…on from different locations
Again with the composer
|
Thanks, guys. @shoaibali The Config API offers Before and After settings that allow you to specify with some precision when the file should load and what it should override. You can see in the dropzone config.yml file: ---
Name: dropzone
After: 'framework/*','cms/*'
---It specifies to load after framework and cms. Because the snippet is also named, in your config, you can just specify @wakes In general, I have no objections to the changes. Because the module is most useful on the frontend, I think the ability to override the scripts is warranted. Since I didn't see this until now (email issue wasn't sending me Github notifications), would you mind rebasing your changes? We'll aim to put this in a 1.2 release. |
|
Thank you @unclecheese for the explanation :) I forgot about the before/after functions in yaml file. |
|
Would you be able to rebase this against the master so we can merge it in? |
|
Hi unclecheese, Yup, I'll do it this afternoon and submit pull request. Cheers, Steve Wake DigitalHod Limited E: wakes@digitalhod.net
|
|
@wakes Bumping this from the past. Still able to rebase this to get it in? |
Added configuration settings:
to specify where javascript and front-end config is loaded from more succinctly. If they start with a '/' then they will load relative to web root so you can place them outside the module.
Thanks for the awesome upload field!