Closed hjanuschka closed 8 years ago
ok after diggin a bit deeper - the upgrade to 2.x seems to be pretty bad - as it breaks alot
e.g.:
base-layout.html.twig
-> wich had page_content
, page_title
and so on
default-layout.html.twig
-> wich uses avanzu_page_content
- this means that almost all twig files need to be touched 👎 {{ macro.box_header('Statistics', false, false, 'default') }}
will there be an upgrade guide - when is the 2.x to be release as a final, and master
will point to it?!
ok nevermind - i read the changelog about the breaking changes - right now i am porting :)
abotu the symlink error, with --symlink --relative
it worked.
thx for your job!
Yes, the 2.0 upgrade is quite radical in order to establish a more consistent naming across the whole bundle and to ged rid of most dependencies which were obsolete in most cases anyways.
In order to use the base-layout.html.twig
with page_content
and page_title
again, it should be possible to create your own base-layout.html.twig
in app/Resources/views
according to the template override strategy, symfony uses.
As far as the 2.0 merge to master goes, i think i'll setup a 1.x support/maintenance branch so that it's still possible to release 1.x updates. But you might want to change your composer.json
to use a specific release. Otherwise your could run into upgrade related issues out of the blue.
thx for the fast reply - i am done with the refactoring - i exactly ended up doing my own base on top my already exsting base - that emulate page_content
setting `avanzu_page_content``
overall - it is definitly worth the refactoring - its much cleaner now! many thx for keeping up the good work!
just a minor question:
this one
<script src="{{ asset('bundles/avanzuadmintheme/vendor/adminlte/plugins/flot/jquery.flot.js') }}"></script>
got:
<script src="{{ asset('theme/plugins/flot/jquery.flot.js') }}"></script>
but now the theme is inside /web/ - is that ok ?
Publishing the assets into web/theme
is basically the same mechanic as symfony does with assets:install
except that the path for the theme is theme
instead of bundles
.
This is due to the fact that the actual theme files are now installed using composer which places the files on the same vendor
level.
Since the theme files are not "bundled" in a symfony sense, the assets:install
won't affect them and that's where the avanzu:admin:initialize
comes into play and why they are put into web/theme
rather than web/bundles
.
@hjanuschka , how exactly you resolved the issue:
Unknown "admin_style_path" function in AvanzuAdminThemeBundle:layout:base-layout.html.twig at line 17.
I think this is not the only function which breaks , there are couple more there
following errors:
can be fixed by doing a
rm vendor/almasaeed2010/adminlte/starter.html && mkdir vendor/almasaeed2010/adminlte/starter.html
- wich is weird.biggest problem is:
i have no clou where
admin_style_path()
is comming from or what i did wrong -git grep'ed
over the repo - no idea.can you please help @avanzu (BTW i love this bundle)