tuna-cms / tuna-bundle
Tuna CMS main package
This package's canonical repository appears to be gone and the package has been frozen as a result.
Installs: 2 371
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 2
Type:symfony-bundle
Requires
- php: >=5.6
- a2lix/translation-form-bundle: ^1.0
- doctrine/doctrine-bundle: ~1.4
- doctrine/doctrine-fixtures-bundle: ^2.3
- doctrine/doctrine-migrations-bundle: ^1.0
- doctrine/orm: ~2.2,>=2.2.3,<2.5
- egeloen/ckeditor-bundle: ^6.0
- friendsofsymfony/jsrouting-bundle: ^1.6
- gedmo/doctrine-extensions: ^2.4
- incenteev/composer-parameter-handler: ~2.0
- jms/di-extra-bundle: ^1.5
- jms/i18n-routing-bundle: ^2.0
- jms/translation-bundle: ^1.3.1
- knplabs/knp-menu: ^2.1
- knplabs/knp-menu-bundle: ^2.0
- knplabs/knp-paginator-bundle: 2.5.3
- leafo/scssphp: ^0.6.3
- lexik/translation-bundle: ^4.0.0
- liip/imagine-bundle: ^1.3
- sensio/distribution-bundle: ~3.0
- sensio/framework-extra-bundle: ~3.0,>=3.0.2
- symfony/assetic-bundle: ~2.8
- symfony/monolog-bundle: ~2.4
- symfony/swiftmailer-bundle: ~2.3
- symfony/symfony: ^2.8.0
- willdurand/js-translation-bundle: ^2.5
Requires (Dev)
- phpspec/phpspec: ^3.2.3
- phpunit/phpunit: ^5.7.11
- sensio/generator-bundle: ^3.0
- symfony/phpunit-bridge: ^3.0
This package is not auto-updated.
Last update: 2020-08-07 22:00:14 UTC
README
Tuna CMS TunaBundle
Installation:
-
Require module
composer require "tuna-cms/tuna-bundle": "^1.0.0"
-
Add following line to
AppKernel::registerBundles()
TunaCMS\AdminBundle\BundleDependencyRegisterer::register($bundles);
-
Import Tuna config:
imports: - { resource: '@TunaCMSAdminBundle/Resources/config/config.yml' }
-
Migrate db
doctrine:migrations:diff && doctrine:migrations:migrate
-
Add routing
# app/config/routing.yml tuna_cms_tuna_admin: resource: "@TunaCMSAdminBundle/Resources/config/routing.yml"
-
Change editor config to (will be changed in next releases)
tuna_cms_admin: components: editor: wysiwyg_style_dir: '%kernel.root_dir%/../vendor/tuna-cms/tuna-bundle/Resources/public/sass/editor'
-
Override config
Tuna injects some basic configs, but feel free to override them (be aware that you can break some of functionalities by this). For newest config defaults check Resources/config/config.yml. This file also includes Resources/config/security.yml, so be sure to clear your security.yml file, or override some parts.
You can also fine tune Tuna by changing bundle config. Here is full option config with defaults:
tuna_cms_admin:
paths:
admin_logo: bundles/tunacmsadmin/images/logo.png
editor_config: bundles/tunacmseditor/js/editorConfig.js
host: null
menu_builder: TunaCMS\AdminBundle\Menu\Builder
locale: en
locales:
- en
- pl
components:
pages:
enabled: true
create: true
delete: true
editor:
wysiwyg_style_dir: %kernel.root_dir%/../vendor/tuna-cms/tuna-bundle/Resources/public/sass/editor
menu:
enabled: true
default_template: 'TunaCMSMenuBundle:Menu:render_menu.html.twig'
security:
enabled: true
use_access_control: true
news:
enabled: true
events:
enabled: false
translations:
enabled: true
categories:
enabled: false
Documentation
You can find documentation here
Tests
$ SYMFONY_DEPRECATIONS_HELPER=weak ./run-tests.sh