From 1565d11d648cca1db82d2425de0af560fba883ae Mon Sep 17 00:00:00 2001 From: Erison Silva Date: Fri, 2 Sep 2022 10:02:42 +0200 Subject: [PATCH] Added doc and upgrade notes --- UPGRADE-4.0.md | 4 ++++ docs/reference/installation.rst | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/UPGRADE-4.0.md b/UPGRADE-4.0.md index d8ae23182..8aa7d8f5c 100644 --- a/UPGRADE-4.0.md +++ b/UPGRADE-4.0.md @@ -52,3 +52,7 @@ The following code has been removed since it is not used: Please check the src/Resources/public and the documentation to see the used CSS and JavaScript. If you are customising (specially removing standard JavaScript or CSS) assets, this will affect you. + +## Layout + +- If you were using sonata's css in your website, add [assets](https://docs.sonata-project.org/projects/SonataPageBundle/en/4.x/reference/installation/#sonatapagebundle-configuration) configuration in your sonata_page.yaml diff --git a/docs/reference/installation.rst b/docs/reference/installation.rst index e0d8f87df..04bcb1bef 100644 --- a/docs/reference/installation.rst +++ b/docs/reference/installation.rst @@ -121,6 +121,12 @@ SonataPageBundle Configuration not_found: [404] # render 404 page with "not_found" key (name generated: _page_internal_error_{key}) fatal: [500] # so you can use the same page for different http errors or specify specific page for each error + # This configuration is optional, + # If you don't want to load the sonata page's layout for your website just remove it, and load your css. + assets: + stylesheets: + - bundles/sonatapage/frontend.css + SonataAdminBundle Configuration -------------------------------