Giter Club home page Giter Club logo

ravel's Introduction

Ravel

STATUS: UNDER DEVELOPMENT

RavelCMS Ver 1 is getting ready to be released.

  • I am planning to change the whole design of the admin panel soon.
  • Here is a preview of the new design. Screenshot

CMS Package for Laravel 4

Screenshot

How to Install

	"require": {
		"raftalks/ravel": "*"
	}
  • Configure your database settings in the L4 app/config/database.php file
  • Open your terminal in the L4 App root directory and run php composer.phar update command
  • Add Ravel Service Provider to the app/config/app.php file under the array key "providers" as shown below
'providers' => array(
		
		'Raftalks\Ravel\RavelServiceProvider',

)
  • And run the following command in the terminal to start installing the CMS package
 php artisan ravel:install
  • The above command will publish all the assets and run the migration and seeds
  • Before using Ravel CMS, you may want to do some configuration changes like setup a username and password, look inside vendor/raftalks/ravel/src/config/app.php file, by default the username is "admin" and password is "ravel".

How to update the package

  • Use the following composer update command to download the updates
php composer.phar update
  • and after downloading the updates, run the following artisan command to make sure migrations and package assets gets updated
php artisan ravel:update

Setting up custom fields to Post and Page

  • Check the config file under the package path app/config/packages/raftalks/ravel/content.php
'custom_fields' => array(

			//'example'
			//'post'		=> array(
							// 		"{metakey}" => array('label'=>'{name}','type'=>'{text}', 'attr'=>array(), 'options'=>array())
							// )

			'post'			=> array(
								'somefield' => array('label'=>'custom field','type'=>'input_checkbox'),
								'custom_field3' => array('label'=>'custom field','type'=>'ng_datepicker'),
								'custom_field2' => array('label'=>'custom field2','type'=>'select','options'=>array(1=>'test',2=>'two',3=>'three',4=>'four'))
								),

			'page'			=> array(),

			'attachement'	=> array(),

		),

Admin Panel

  • By default the CMS admin panel is available on http://www.domain.com/admin and you can change the base url to admin panel by changing the app config file of the package.

Documentation will be updated soon

ravel's People

Contributors

fr6 avatar raftalks avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ravel's Issues

[Proposal] Add theme level below views

@raftalks How do you plan on implementing the 'frontend_theme' config option? I suggest we add a subfolder level to views so that we have

views

theme1

admin
layouts
templates

theme2

admin
layouts
templates

Also can we add a 'backend_theme' config option?

Can't Install

Hey guys,

Thanks for your work! After running php artisan ravel:install, everything throws a 500 error, including /admin. Also, when I run composer update, I'm getting:

Script php artisan optimize handling the post-update-cmd event returned with an error: (no error shown)

Just trying to get it installed to poke around! Any ideas?

Unable to install when using SQLite

I understand that Ravel is in the alpha development stage, however I feel that this should be addressed.

If I attempt to install Ravel using artisan ravel:install, I get an SQL syntax error.

I think that you should specify which database systems are supported. Unfortunately, my client does not have MySQL support. Therefore, I have to use SQLite. This is the only CMS made with Laravel 4 (to my knowledge), and looks to be very promising.

Installation error

Environment Win XP SP3, wamp local server, PHP 5.4.3.
Installed L4 and edited composer.json and app.php, created db.
Running composer update gives error :
1

The only I can think of is that TODAY I found out that while Apache on wamp runs PHP 5.4.3, command line PHP is 5.3.13 from an old installation of wamp.

Thanks
Petros

Authentification / Login

After a clean install, I'm not able to login on Ravel.

When I submit the form, it loops back to the form without any errors/message.

The Javascript console return the error: "Error: No module: app" from "jquery.min.js".

Is it possible to turn off Ravel's authentication?

I've got my own authentication system built and running on my site, but I simply need a CMS to manage some content. Is there an easy way to disable ravel's authentication and just have it use Laravel's built in auth?

It all looked pretty hardcoded so I'm guessing not.

A little problem with documentation (Installation process)

There's a little problem in the procedure for installing ravel. Your documentation says to add ravel to composer.json file and then add the provider to app.php in config directory. Then to issue composer update.
However, it should be:

  1. Add the ravel package info to composer.json
  2. In the terminal, issue the command: composer update
  3. Add Provider to the app.php
  4. publish assets

conflicted dd function with laravel helper function

your helper function dd() conflict with laravel helper function ..

PHP Fatal error:  Cannot redeclare dd() (previously declared in /Users/Zaher/Sites/rav/vendor/laravel/framework/src/Illuminate/Support/helpers.php:434) in /Users/Zaher/Sites/rav/vendor/raftalks/ravel/src/Raftalks/Ravel/RavelHelpers.php on line 36
Script php artisan optimize handling the post-update-cmd event returned with an error: PHP Fatal error:  Cannot redeclare dd() (previously declared in /Users/Zaher/Sites/rav/vendor/laravel/framework/src/Illuminate/Support/helpers.php:434) in /Users/Zaher/Sites/rav/vendor/raftalks/ravel/src/Raftalks/Ravel/RavelHelpers.php on line 36

Use own BaseController class

Use own BaseController class and not the one in app directory.
If anybody changed that it will throw an error so thats an additional dependency.

Call to undefined method Html\HtmlHandler::style()

Looks like my install is getting some functions crossed. Can't find the culprit, the error page points me to Html.php, but best I can figure is something is getting called incorrectly in the __callStatic function, as HtmlHandler has no style method.

EDIT: After examination, it appears that ravel is overwriting the default Laravel HTML class, thus disabling the HTML::style() protocol in the blade templates. I'm trying to find the documentation for the new L4 HTML classes, but as far as I can tell, HTML is still a valid class to use. Am I missing something here?

Install error: key too long

php artisan ravel:install command produces this error:

[Exception]
SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; > max key length is 1000 bytes (SQL: alter table
contents add unique contents_slug_content_type_lang_publish_date_unique(slug, > content_type, lang, publish_date)) (Bindi
ngs: array (
))

i think contents_slug_content_type_lang_publish_date_unique key is way too long.

Ravel Admin Freezes in Laravel

I installed Ravel with composer and that seemed to work fine. When I go to mysite.com/admin I can log into Ravel and see the admin interface. But when I click on the Dashboard tab, I get a view with a spinner at the top that never loads any content.

When I click the Media tab I get a big SQL state error message, briefly, at the top.

How do I get Ravel working?

Bob

Doesn't seed the `users` table while ravel:install

[Exception]
SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update
a child row: a foreign key constraint fails (`ravel`.`users`, CONSTRAINT `u
sers_usergroup_id_foreign` FOREIGN KEY (`usergroup_id`) REFERENCES `usergro
ups` (`id`) ON UPDATE CASCADE) (SQL: insert into `users` (`activated`, `api
_token`, `updated_at`, `created_at`) values (?, ?, ?, ?)) (Bindings: array
(
  0 => true,
  1 => '54097519e5bd614cd151b8247e77a11a',
  2 => '2013-06-06 19:22:53',
  3 => '2013-06-06 19:22:53',
))

Max Key Length Exceeded

$ php artisan ravel:install
Configuration published for package: raftalks/ravel
Assets published for package: raftalks/ravel
Migration table created successfully.
[Exception]
SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes (SQL: alter table contents add unique contents_slug_content_type_lang_publish_date_unique(slug, content_type, lang, publish_date)) (Bindings: array (
))

ravel:install

Just a heads up :)

Installation problems

Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
- intervention/image 1.4.1 requires ext-gd * -> the requested PHP extension gd is missing from your system.
- raftalks/ravel dev-master requires intervention/image 1.4.* -> satisfiable by intervention/image[1.4.1].
- Installation request for raftalks/ravel * -> satisfiable by raftalks/ravel[dev-master].

after I run composer.phar update, I tend to have the previous error. This may be a newb question, but I'm stuck at getting this to work. Any bumps would be of great help!

Jan

laravel backend/angular frontend how include ravel csm

I would like to ask if your can tell me how I can include ravel in my application. I have a laravel backend and a angular frontend. For now I would like to manage the angular static content with the cms (maybe multilanguage in the future).

no found error after install

hi,
i have installed it successfully this time, and i have logged in to the admin area ..
now with a fresh install i got an error "Not Found" which does not describe any thing, so a small dig you find that there is a request for :

ravel/api/posts?page=1
ravel/api/pages?page=1
ravel/api/postcategories?page=1

now the second issue which i have found is that when you go to the users tab, you will find only one user, but the pagination is wrong, http://d.pr/i/NTes

Themes

Hi

Could you please include the new theme (for version 1) in the repository and make it possible to choose between themes in the config (this might already be possible).

I would like to have the option to add my twitter-bootstrap theme for ravel and don't want to be working on old code.

Regards
Victor

SQLSTATE[42000]: Syntax error or access violation: 1071

SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length
is 1000 bytes (SQL: alter table contents add unique contents_slug_content_type_lang_publish_dat
e_unique(slug, content_type, lang, publish_date)) (Bindings: array (
))

I'm not sure if this was something only for me, but passing the array in line 38 of the create_contents_table migration did not work.

So i commented it out and added the unique part to each line that was in the array and it then worked.

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.