Page package for Cms_Framework_Seed

dev-master 2018-11-25 13:46 UTC

This package is auto-updated.

Last update: 2024-10-26 03:43:05 UTC


README

This is a Laravel 4 package that provides multilingual page interface for cms_framework_seed framework.

Installation

Begin by installing this package through Composer. Edit your project's composer.json file to require cms_framework_seed/page.

"cms_framework_seed/page": "dev-master"

Next, update Composer from the Terminal:

composer update

Once this operation completes, the final step is to add the service provider and page alias. Open app/config/app.php, and add a new item to the providers array.

'Cms_Framework_Seed\Page\PageServiceProvider'

And also add it to alias

'Page'  => 'Cms_Framework_Seed\Page\Facades\Page',

Use the below commands for publishing

Configuration

php artisan vendor:publish --provider="Cms_Framework_Seed\Page\Providers\PageServiceProvider" --tag="config"

Language

php artisan vendor:publish --provider="Cms_Framework_Seed\Page\Providers\PageServiceProvider" --tag="lang"

Views

php artisan vendor:publish --provider="Cms_Framework_Seed\Page\Providers\PageServiceProvider" --tag="view"

Publishing views to theme

Publishes admin view php artisan theme:publish --provider="Cms_Framework_Seed\Page\Providers\PageServiceProvider" --view=="admin" --theme=="admin"

Publishes client view php artisan theme:publish --provider="Cms_Framework_Seed\Page\Providers\PageServiceProvider" --view=="default" --theme=="client"

Publishes user view php artisan theme:publish --provider="Cms_Framework_Seed\Page\Providers\PageServiceProvider" --view=="default" --theme=="user"

Publishes public view php artisan theme:publish --provider="Cms_Framework_Seed\Page\Providers\PageServiceProvider" --view=="public" --theme=="public"

You are done!

Usage

Add pages through admin/pages

Browser to get page browse /{slug}.html

Calling other pages inside a view or function

{{Page::heading('slug')}}
{{Page::content('slug')}}
{{Page::title('slug')}}
{{Page::keyword('slug')}}
{{Page::description('slug')}}
{{Page::banner('slug')}}