Skip to content

tkulka/tuna-bundle

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

721 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tuna CMS TunaBundle

Build Status Latest Stable Version Total Downloads License

Installation:

  1. Require module

     composer require "tuna-cms/tuna-bundle": "^1.0.0"
    
  2. Add following line to AppKernel::registerBundles()

     TunaCMS\AdminBundle\BundleDependencyRegisterer::register($bundles);
    
  3. Import Tuna config:

     imports:
         - { resource: '@TunaCMSAdminBundle/Resources/config/config.yml' }
    
  4. Migrate db

     doctrine:migrations:diff && doctrine:migrations:migrate
    
  5. Add routing

     # app/config/routing.yml
    
     tuna_cms_tuna_admin:
         resource: "@TunaCMSAdminBundle/Resources/config/routing.yml"
    
  6. 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'
    
  7. 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

About

Tuna CMS TunaBundle (integrating all bundles)

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • PHP 45.6%
  • CSS 24.6%
  • HTML 15.9%
  • JavaScript 13.4%
  • Shell 0.5%