-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Foundation JS is partially Down #38
Comments
Ho ! Just bumped in the right page of foundation doc. Is say that when loading modules at once, like we do with the toggles in bones admin, script loading order must be respected as such
Only then a module scirpt may be loaded Changing the js.html.twig solved the issue. I did a pull request for that. I let you close the issue if the pull reques is ok with you Cheers |
The priority setting in the twig code should allow for the JS to be ordered properly. JQuery is loaded in the head and the rest is loaded in the footer, with foundation.core loaded first. I'll test it, but for the sites I've set up, the ordering is correct. |
Hi Thank's for your quick reply ! Actually I have to give more tries but after 5h my brain is not up anymore. I got enthusiastic when I foud this page of the documentation, but I was already burned. I knew that depending of the module, some extra utilities were needed, and I may as well have mixed things up. However if I activate all CSS and all JS, I still bump in the error above and for whatever reason I can't have acordeon working. I'll take a rest and come back to that later. maybe starting from a clean install to make it easier Cheers |
I'm getting back into things here after somewhat of a hiatus and working on upgrading Bones. I am definitely noticing some ordering issues, but also some "sticky cache" issues where the site isn't responding properly at first, but after a thorough cleaning of cache, it responds properly. It'll be some days before I have a full test branch up and running as there were a LOT of changes to Foundation over the last year, but it's getting there. Off-Canvas is one of the bigger changes with many more options now and I'm noticing others as I'm going through the logs. My plan as of now is to move all JS to a central directory and not worry about retaining the compiling ability. This will clear up a lot of files and it seems that most people are only customizing SCSS anyway. I'm seeing a few places where I can consolidate options, but then opening up more where they make sense. |
Hi Ben I'l actually new to grav and foundation and can't provide much imput about the how and why, and the best path for the upgrade, however I'll be happy to help with some unitary test, despite time is always an issue I might encounter and try some while working on my site. Actually, I'm among the one who only customise scss and totaly support your idea, for now, and I can't say for how long, in my previous experience with bootstrap I ended up customizing the whole thing. For this reason I 'm wondering why not keep the best of both world. As a more advanced and curious user, I do relly appreciate the idea of beeing able to customise foundation within grav through the toggle in the bone admin settings, or further depending of my needs, I would be happy to have the machinery to compile foundation js, as I may compile my scss. If I may I would suggest to add a toggle in the bone setting and let the user select between and "easy/vanilla" mode with a complete, native, vanilla foundation and a "advanced/custom" mode as it is now. I've never tried to edit the admin panel, but as advanced as you are in the project, it must be pretty straight-forward. Cheers |
Hi,
I've been digging into bones template and really enjoy many of its features.
My next move was to integrate Foundation ready made "kitchen sinks" into my pages however it appears that some do not work.
Of courses I did activated the needed js and css in the template settings (as well as page setting - with cross tests).
To further my test I tried with bones 0.5.2 and 0.6, but had the same result.
Also, with bones 0.6 I updated the dependencis via bower, with no more luck.
I then modified
partials/css.html.twig
andpartials/js.html.twig
to use the css and js of a freshly downloaded foundation for site complete css version ;Then both archodeon and dropdown were working, but of off-canvas wasn't anymore.
I've spend the morning checking if my configuration was fine, which I now am confident with, and the fix suggested above by using my own foundation JS and CSS seems a bit extreme.
Regards
J.
PS : I'm running on debian 9 ; php 7.0, apache 2.4.25
The text was updated successfully, but these errors were encountered: