neopangea/f3-mod-cms

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

CMS module manager

2.0.2 2016-05-05 22:05 UTC

This package is auto-updated.

Last update: 2020-09-29 04:34:47 UTC


README

This CMS to be used w/ NEO F3 APP Framework

Installation

  1. Install application framework
  2. Add a composer dependency for this project to root project's composer.json
  3. Run via command line 'composer update'
  4. Copy entire contents of '/vendor/neopangea/f3-app/README/www' into web root.
  5. Done!

Usage

Once installed navigate to /cms and basic CMS wrapper will be displayed.

Modules

Customizing

By follow the below conventions, the CMS may be customized per application.

Directory Structure

Required - Custom CMS Module

Create root directory...

   root/
      modules/
         cms-<module name>/

Required - Configuration

Add configuration files...

   root/
      modules/
         cms-<module name>/
            config/
               - common.ini
               - development.ini
               - production.ini
               - staging.ini

Optional - CMS Main Nav Item

Add Nav template file.

   /root
      /modules
         /cms-<module name>
            /views
               /nav
                  - main-nav.htm

Add Boostrap 3 formatted file item

<li class="<?= $nav['primary'] == 'files' ? 'active' : '' ?>">
    <a href="/cms/files"><span class="glyphicon glyphicon-file"></span> Files</a>
</li>

Optional - Dictionary

Add F3 Dictionary

/root
   /modules
      /cms-<module name>
         /dict
            - en.php
  • TODO: How to add scripts via head.thm via
  • TODO: Add routes.php to module dir

The CMS manager w/ sniff these directories and pull in the required components.