twAdminPlugin - 1.1.0

Backend module based on sfAdminDashPlugin

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to the Plugins Home

Signin


Forgot your password?
Create an account

Tools

Stats

advanced search
Information Readme Dependencies Releases Changelog Contribute
Show source

twAdminPlugin based on sfAdminDashPlugin

Overview

I had to create nice backend for my Thunderwolf Project and here is result.

This plugin is based on sfAdminDashPlugin created by Kevin Bond. Like him I had to create a menu to access all the various modules.

This plugin automates the process by using a configuration files.

Optional Requirements:

twCorePlugin Base plugin for all Thunderwolf Plugins

twAdminGuardPlugin The Best plugin for authentication

Installation

Install plugin:

symfony plugin:install twAdminPlugin
symfony cache:clear

Create backend or admin app if not exists:

symfony generate:app backend

Publish the plugin's assets:

plugin:publish-assets

If the modules are admin generator modules, change the default admin generator theme in each module's generator.yml to the twadmin Theme

    theme:                 twadmin

This plugin default app.yml file looks like the following:

all:
  ckeditor:
    basePath:         '/twAdminPlugin/ckeditor/'

  tw_admin:
    web_dir:                      /twAdminPlugin
    image_dir:                    /twAdminPlugin/images/

    site:                         My Site
    site_start_year:              2012

    include_path:                 true
    include_jquery_no_conflict:   false

    default_module:               homepage
    default_category:             index
    default_subcategory:          false

    #login:                        false
    #logout:                       true

    #login_route:                  '@homepage'
    #logout_route:                 '@homepage'

    menu:
      homepage:
        categories: 
          index:
            label: Informations
            url:   '@homepage'

For example twAdminGuardPlugin default app.yml file looks like the following:

all:
  tw_admin:
    login:                        false
    logout:                       true

    login_route:                  '@tw_guard_signin'
    logout_route:                 '@tw_guard_signout'

    module:
      usersadmin:
        label: Użytkownicy
        url:   '@tw_guard_user'
        credentials: [superadmin]

    menu:
      usersadmin:
        categories:
          users:
            label: Użytkownicy
            url:   '@tw_guard_user'
            credentials: [admin]
          permissions:
            label: Uprawnienia
            url:   '@tw_guard_permission'
            credentials: [superadmin]
          groups:
            label: Grupy Uprawnień
            url:   '@tw_guard_group'
            credentials: [superadmin]

This plugin is based on Bootstrap, from Twitter

This plugin have some additional graphics and HTML design is sponsored by ARUKOMP company.

All this additional graphics are licensed under a Creative Commons Attribution 3.0 Unported License

Creative Commons License