minesh93/cms-thing

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

CMS Thing

Installs: 42

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Language:JavaScript

1.0 2017-12-18 22:22 UTC

This package is auto-updated.

Last update: 2024-04-19 04:08:57 UTC


README

NPM Dependancies for building JS + CSS

flexboxgrid
vue-multiselect
vue-quill-editor

Add config file to use admin templates.

Claws.php

   return [
       'admin_templates' => 'claws.admin.templates',
       'site_templates' => 'claws.site',
   ];

Changes to Auth (Adding Guard and Provider

'claws_admin' => [
    'driver' => 'session',
    'provider' => 'claws_admins',
],
        
'claws_admins' => [
    'driver' => 'eloquent',
    'model' => Claws\Models\Admin::class,
],

        

Binding Content

Currently different posts types are assigned to the AppService Provider within the boot method.

Adding types of content or settings

        PostRegister::register([
            'name' => 'page',
            'urlBase' => '/',
            'useCustomTemplates' => true,
        ]);

        PostRegister::register([
            'name' => 'post',
            'createText' => 'Write A New Post',
            'urlBase' => 'blog',
            'icon' => 'fa-thumbtack',
        ]);

        PostRegister::addPostRenderTemplate('page','Custom Page Template','custom-page');
        PostRegister::addPostContentTemplate('page','content_test', 'test-content' );
        PostRegister::addPostContentTemplate('page','only_page_type', 'test-content-1', 'custom-page');

        SettingsRegister::addSection('general','General','general');
        // SettingsRegister::addSection('test','Test');