midnight/cms-module

There is no license information available for the latest version (dev-master) of this package.

dev-master 2014-06-16 11:19 UTC

This package is auto-updated.

Last update: 2024-04-19 23:52:00 UTC


README

Installation

  1. Install the module via Composer.

  2. Add the following dependencies to your config/application.config.php:

     'Midnight\Wysiwyg',
     'ZfcAdmin',
     'AssetManager',
     'Midnight\AdminModule',
     'DoctrineModule',
     'DoctrineORMModule',
     'Midnight\UserModule',
     'ZfcRbac',
     'Midnight\CmsModule',
    
  3. Make sure the directories data/cms/pages and data/cms/blocks exist and are writable.

  4. Make sure your Doctrine connection (orm_default) is set up correctly.

  5. Create the new tables by running "vendor/bin/doctrine-module orm:schema:update --force"

  6. Create a new user programmatically: (Yes, this is awful and should be handled differently)

     $this
         ->getServiceLocator()
         ->get('user.service')
         ->register('jim@example.com', 'password-here');
    
  7. Set the is_admin flag of your newly created user to 1

  8. Make sure jQuery is loaded in your layout:

     $this->headScript()
         ->prependFile('//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js');
    

Now you can go to /admin/cms and log in with the user you've just created.