This bundle provides a pages and categories for Laravel 3 with the Admin Framework.
This bundle is still under active development and is not yet suitable for production use straight away. Developers making improvements for this bundle please contribute to the Github repository, if you can. Thanks!
- Supports multi-level categories
- Pages can be "top-level" or in categories
- Integration with Admin Framework to make it easy to create/edit pages and categories.
-
Themes Bundle - preferably use this fork.
-
Laravel 3
-
Git clone or copy the bundle to Laravel's
bundles
directory with the name ofpages
.$ git clone git@github.com:CodeBinders/pages.git
-
Edit
application/bundles.php
and register Pages bundle. To have Pages bundle serve requests without any intermediate URI segment, use'/'
as the'handles'
value:'pages' => array('handles' => '/'),
Else, specify the handles value accordingly, e.g. for serving pages as
/p/my-page
, use this:'pages' => array('handles' => 'p'),
-
Run migrations. Run this command in Laravel's project directory:
php artisan migrate:pages
-
Implement a theme based on the Theme bundle. The theme should implement two layouts - categories and pages. For example of those layouts see
examples/layouts/
directory. -
If a
theme.php
config file is not already present in Laravel'sapplication/config/
directory, copyconfig/theme.php
to Laravel'sapplication/config/
directory.
Released under the terms of the GNU General Public License v3+. For full license text see: http://www.gnu.org/licenses/gpl.txt