Giter Site home page Giter Site logo

cms's Introduction

Soda CMS

A sweet PHP CMS solution built on Laravel!

Installation

Install easily using the Soda Installer or manually by following these steps:

1. Create new Laravel Project

composer create-project --prefer-dist laravel/laravel app-name "5.3.*"

or

laravel new app-name

2. Require Soda Framework

cd app-name

composer require soda-framework/cms

3. Integrate into Laravel

Add package to providers in /config/app.php

'providers' => [
    Soda\Cms\SodaServiceProvider::class,
]

4. Configure

php artisan soda:setup

or, manually set up database in your .env file.

5. Migrate & Seed

(optional) php artisan session:table

php artisan vendor:publish

php artisan optimize

php artisan soda:install

cms's People

Contributors

chaddles23 avatar killgallic avatar lvcasjm avatar noodlewitt avatar ryanbc avatar ryzr avatar scrutinizer-auto-fixer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

sherpic

cms's Issues

CMS Form Validation

Currently pages, blocks and fields allow blank input into fields that required valid values.

Additionally, some descriptive text below these fields, and default values would be handy in guiding the user.

Configurable table-view for DynamicModel columns

Currently all columns in a DynamicModel are listed in a table view for a block. There needs to be a way to configure if columns are displayed or hidden, and potentially a way to alter the way values are displayed in the table-view.

Erorr on Install

When after install and i type command

php artisan soda:setup

i get erorr

[Symfony\Component\Debug\Exception\FatalThrowableError]
Class 'Soda\Providers\SodaServiceProvider' not found

Investigate reported issue

Reported bugs:

  • Creating a page of a certain type creates duplicated rows in it's associated model tabel
  • Fields associated with a page are not saved when creating

Additional Seeds

Once the CMS is in a workable state, we should add some base seeds (for pages, blocks, etc) that can set up a project quickly upon installation.

Investigate media not loading for DynamicModel

Bug report of media not loading for DynamicModel.

Worked:

$header = Soda::dynamicModel('soda_header')->first();
$images = Media::where('related_table', $header->getTable())
->where('related_id', $header->id)
->where('related_field', 'image')
->get();

Not working:

$header = Soda::dynamicModel('soda_header')->first();
$images = $header->getMedia('image');

Code Doc Blocks

Documentation is missing from a lot of the code, particularly the FormBuilder/FormField classes.

Not all pages have/need types

Currently it is required that a page has a type (and hence, a loaded DynamicModel), but this is not always necessary for simple sites.

Session not available when searching Page by slug

As session is not available, draft mode status cannot be determined. Instead, we will need to have the slug route within a web middleware.

Steps:

  • Generate session on slug route
  • Before aborting, reflash session data
  • Reflash may need to take place when re-routing with the Controller action?

Improve error reporting

Currently a lot of dd()s throughout the project for debugging errors.

These should be tracked down and throw an exception instead, so we can later update the error handler to return a view reporting the error to the user.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.