-
Notifications
You must be signed in to change notification settings - Fork 11
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
Nothing Working – Assets Not Loading? #3
Comments
Tested it briefly, can't get the js/css assets loaded too. Seems the onPageInitialized, where the assets of the page are added to Grav, fires before onPageContentProcessed, where the assets are added to the page. Is this possible @rhukster? |
This is working fine for me. Can i get a list of plugins you guys are using? Or perhaps, can you try turning off plugins until (hopefully) it starts working? |
https://github.com/getgrav/grav/blob/develop/system/src/Grav/Common/Page/Page.php#L582 Then in
So even though So I will need you guys to provide me a sample Grav config/setup where this happens so I can debug, as it works fine for me in all my testing. |
Thanks @rhukster, I won't be able to get you my test site until Monday. I did try this on a fresh install with the Admin plugin and it works fine. So, as you said, maybe it's another plugin conflicting with it. Thanks. |
Thanks for the zip, what exactly am i looking for? |
You mentioned that you wanted a sample Grav config/setup where this issue happens. So, I just zipped up the entire site for you. |
Ok, I found the problem, fixed it, and re-released shortcode-core as v2.2.1. It should show up in < 30 mins. FWIW, the problem was on page that had a content collection defined, it was not initializing the current page in that case as i had only tested on a blog page where there was no shortcode in the blog listing page. Silly mistake, but an easy fix :) |
This was the fix: getgrav/grav-plugin-shortcode-core@c6d9763 |
I was using |
Awesome, thanks! |
Hi andy, latest grav and plugin version: on a modular page the assets (js+css) are not added when a subpage utilizes a shortcode. The shortcode itself is processed (html structure created) workaround: insert a shortcode in html comments at the and of the modular.md so looks like the the ->addAssets() calls are fired too late? |
Hi, I have the problem that my assets are not loading anymore. I tried turning off plugins and the workaround @cord posted here, both of the options didn't work for me. Is someone having the same issues? |
For whatever reason none of these shortcodes are working for me. It seems like the JS and CSS assets are not being loaded. If those assets are supposed to be in the rendered page HTML, I'm not seeing them. Any thoughts?
Thanks!
The text was updated successfully, but these errors were encountered: