wearejust / sonata-theme-bundle
A custom SonataAdminBundle theme
Installs: 6 206
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 3
Forks: 0
Open Issues: 13
Language:CSS
Type:symfony-bundle
Requires
- pixassociates/sortable-behavior-bundle: ^1.4
- sonata-project/admin-bundle: ^3.1
- symfony/framework-bundle: ^3.3|~4.0
- 3.x-dev
- 3.0
- 2.x-dev
- dev-master / 2.x-dev
- 2.1.15
- 2.1.14
- 2.1.13
- 2.1.12
- 2.1.11
- 2.1.10
- 2.1.9
- 2.1.8
- 2.1.7
- 2.1.6
- 2.1.5
- 2.1.4
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1
- 2.0
- 1.x-dev
- 1.3
- 1.2.5
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2
- 1.1
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0
- dev-dependabot/npm_and_yarn/qs-6.4.1
- dev-dependabot/npm_and_yarn/loader-utils-1.4.2
- dev-dependabot/npm_and_yarn/async-2.6.4
- dev-dependabot/npm_and_yarn/node-sass-7.0.0
- dev-dependabot/npm_and_yarn/tar-2.2.2
- dev-dependabot/npm_and_yarn/hosted-git-info-2.8.9
- dev-dependabot/npm_and_yarn/y18n-3.2.2
- dev-dependabot/npm_and_yarn/elliptic-6.5.4
- dev-dependabot/npm_and_yarn/ini-1.3.7
- dev-dependabot/npm_and_yarn/lodash.mergewith-4.6.2
- dev-dependabot/npm_and_yarn/jquery-3.5.0
- dev-dependabot/npm_and_yarn/stringstream-0.0.6
- dev-feature/html_css_overhaul
- dev-feature/new_cms_layout
- dev-feature/sticky_add_button
- dev-feature/table_checkbox
- dev-feature/removes_progress_bar
- dev-feature/overview_button_group_styling
This package is auto-updated.
Last update: 2023-03-19 22:20:13 UTC
README
Sonata Theme Bundle
Installation
Hint: Coming from 1.x? Please check out our upgrade guide
Step 1: Download the Bundle
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
$ composer require wearejust/sonata-theme-bundle "^2"
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Step 2: Enable the Bundle
Then, enable the bundle by adding it to the list of registered bundles
in the app/AppKernel.php
file of your project:
<?php // app/AppKernel.php // ... class AppKernel extends Kernel { public function registerBundles() { $bundles = array( // ... new Wearejust\SonataThemeBundle\WearejustSonataThemeBundle(), ); // ... } // ... }
Also, enable the pixSortableBehaviorBundle by following their installation guide.
Also, add routing in your routing.yml
// routing.yml _wearejust_sonata_theme: resource: "@WearejustSonataThemeBundle/Resources/config/routing.yml"
Step 3: Compile assets
The assets in this package has not een build yet. This means you have to build the assets yourself (Yarn is needed for this to work). There's webpack already configured for you, locked, loaded and ready to go. Add the following config to your own package.json
file.
{ "scripts": { "build-cms": "cd ./vendor/wearejust/sonata-theme-bundle && yarn && yarn run build", } }
You can now run yarn run build-cms
and the assets will be published to the public dir, and symlinked automatically by the Symfony Framework.
Also add the following to your config.yml
.
framework: assets: packages: backend: json_manifest_path: '%kernel.root_dir%/../public/bundles/wearejustsonatatheme/build/manifest.json'
Step 4: Add extra config (optional)
It's possible to override the config we provide, you can specify an custom yml file (as Resources/config/theme.yml)
the following way:
wearejust_sonata_theme: custom_theme: /path/to/custom/yml
As well as override our config as well as specify an extra extra_css
or extra_js
key in your yml.
# example.yml extra_css: - /path/to/extra/css.css extra_js: - /path/to/extra/js.js