Refactor Layouts
Layouts architecture were a piece of shit... this version cleans up but also breaks things and you need to follow these steps to fix your project:
- don't override
VictoireCoreBundle:Layout:layout.html.twigdirectly butVictoireCoreBundle:Layout:defaultLayout.html.twig - the initial
VictoireCoreBundle:Layout:fullWidth.html.twiglayout is now known asVictoireCoreBundle:Layout:defaultLayout.html.twig - the
VictoireCoreBundle:Layout:frontLayout.html.twigdoes not exist anymore - the
VictoireCoreBundle:Layout:base.html.twig's blocks were removed:- foot_script_additional
- javascript
- the
VictoireCoreBundle:Layout:base.html.twighas some new blocks:- victoire_ui
- body_header
- body_content
- body_footer
- the
VictoireCoreBundle:Layout:layout.html.twig:- has a new
body_content_mainblock - wrap the
body_content_mainin a main#content tag - declare the main_content
cms_slot_widgets(in thebody_content_mainblock)
- has a new
- the
fos_js_routes.jsis now generated with theprodsuffix inprodenvironment
Fixed bugs:
Closed issues:
- Clarify Layouts #326
- Error 500 while opening the blog through burger menu #444
- [1.6] Refactor the Blog creation #403
Merged pull requests:
- Feature/refactor layout system #1.7 #466 (lenybernard)
- Merge 1.6 into master #1.7 #465 (lenybernard)
- Bugfix/template widget edit #464 (paulandrieux)
- add user's profile serializer group #463 (lenybernard)
- fix template form #454 (paulandrieux)
- Use http authentication in tests #453 (paulandrieux)
- Improvments #452 (lenybernard)
- don't add slug type on homepage (because it's useless and buggy) #451 (lenybernard)
- Ensure to post widget form just once #450 (paulandrieux)
- kick getLocale usages #449 (paulandrieux)
- check the view exists #447 (lenybernard)
- use getName because name property is in the article translation #445 (paulandrieux)
- quantum fixes #441 (paulandrieux)
- use victoire_core_widget_new route instead of useless victoire_core_widget_new_quantum_item #438 (lenybernard)
- if not defined the user is by default admin #435 (Charlie-Lucas)