-
Notifications
You must be signed in to change notification settings - Fork 12
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
Installation out of the box fails #9
Comments
@bobdenotter "NetworkError: 404 Not Found - http://dev.local/extensions/vendor/bolt/labels/assets/handsontable.full.min.css" "NetworkError: 404 Not Found - http://dev.local/extensions/vendor/bolt/labels/assets/handsontable.full.min.js" The extension with all it's files get installed in the /extensions dir while the doc_root in this setup is the /public dir. The locations of files and folders when using the |
For Composer based installs to work, in the "extra" section of composer.json you need to add: "extra" : {
"bolt-assets" : "assets/", |
Have you tried |
@GawainLynch I fixed it now by manually coping the files. @bobdenotter |
@phpetra that tells the Composer installer to take an action on install, via composer… see the ExtensionInstaller class in 2.2 (changed in master/2.3). |
@GawainLynch |
@GawainLynch |
Yes mate… My apologies, I can absolutely see how easily my comment would, itself, not be easy to interpret for someone that did not have the intimate knowledge of the code base that I do… A fail on my part 😁 |
Yes, I am at the top of the naughty list with my extensions for not having this in all of them… Please send one in 👍 |
@GawainLynch No problem (or apologies needed). I am discovering things as we go along ;-) |
Clean up mode… Call out if the two rewrites since this was opened haven't caught everything. |
@GawainLynch Since this was an issue of over a year old, I have no idea anymore ;-) |
@bobdenotter
I did some debugging for the labels extension and have found 2 things:
$this->app['htmlsnippets'] = true;
on line 246 of [Extension.php[(https://github.com/bolt/labels/blob/master/Extension.php#L246)
the extension is loaded in the backend and I get the editable grid. And I can edit and save labels.
However trying to use them in the frontend does not work. I get english no matter what I try.
{{ lang }} remains empty.
I have an idea about why it doesn't work from looking at your code earlier so I'll look into that and will create a PR at least for the snippet.
The setup I had earlier today was an installation through creating a project with composer
composer create-project bolt/composer-install
and maybe because the paths and folders in that installation are are different (or something else?) I could not get the assets loaded in the backend. Adding the htmlsnippets line had no effect.How to solve this I have no clue. Have you any idea?
The text was updated successfully, but these errors were encountered: