This project is a preconfigured setup of SonataAdminBundle with default RTL support
- Doctrine ORM
- ckeditor
- rest configs (withoud nelmio doc bundle)
- liipImagine
- symfonyjdate
- vichUploader
Download the ZIP file and install dependencies using composer
Configuration detailsand instructions:
Sonata RTL stylesheets are located in web/assets/css
. This files are used in twig's global parameters and are read by app\Resources\SonataAdminBundle\views\standard_layout.html.twig:53
. Changing application default locale will also affect the layout directions in Sonata dashboard.
To change sonata admin dashboard theme (colors etc.), just download the AdminLTE Full Theme and change the colors in build/less/variables.less
. Then configure Gruntfile.js
to get the correct output file (export the output css to your web/assets/css
folder).
After that, add the following files to sonata stylesheets (Both RTL and LTR):
assets/css/AdminLTE.min.css
assets/css/skins/_all-skins.min.css
assets/css/admin-custom.css
Don't forget to remove bundles/sonataadmin/vendor/admin-lte/dist/css/AdminLTE.min.css
and bundles/sonataadmin/vendor/admin-lte/dist/css/skins/skin-black.min.css
from both RTL and LTR configurations. Also, the grunt tasks in AdminLTE won't create RTL version of styles. You can RTLize the styles using RTLCSS library