https://github.com/thecodingmachine/cms.scaffolder
[Experimental] This package contains a library to generate CMS components for Mouf
https://github.com/thecodingmachine/cms.scaffolder
Last synced: 10 months ago
JSON representation
[Experimental] This package contains a library to generate CMS components for Mouf
- Host: GitHub
- URL: https://github.com/thecodingmachine/cms.scaffolder
- Owner: thecodingmachine
- Created: 2016-04-21T15:58:27.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-04-22T14:18:57.000Z (about 10 years ago)
- Last Synced: 2025-02-16T12:30:25.759Z (over 1 year ago)
- Language: PHP
- Size: 111 KB
- Stars: 0
- Watchers: 9
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
About CMS Scaffolder
=================================
What is it?
-----------
Mouf CMS Scaffolder is a PHP library designed to easily create CMS components.
How to use ?
---------------------
To use the CMS Scaffolder, you just need to define your component name, and set it into the CMS => Scaffolder tab in Mouf's interface.
Here are the steps :
1. You set your component's name, for example : Blog. WARNING : For now, the component name has to be in the SINGULAR to avoid the generated controller to use inexistant DAOs & Beans.
2. You click on "Generate component"
- The library will automatically :
- Generate an SQL file
- Generate a database patch using this SQL file
- Apply the database patch
- Generate the DAOs and Beans (using TDBM) ; BlogDao, BlogBean etc.
- Generate views
- Generate a controller -- BlogController -- with methods allowing to :
- Display a front-office list
- Display a back-office list
- Display an item
- Edit / Save / Delete an item
3. Purge cache -- to map the new URLs
4. Let's use it !
The CMS Scaffolder does not provide (for now) a pretty display, it will let you totally free to modify the views and integer it easily in your custom template.
Design choices
--------------
In the base version, the CMS component contains :
- Title
- Slug (auto generated from title)
- Short text
- Content
- Image
- Creation date
- Update date
We think these are the minimum of useful datas for a CMS component.
You don't have many useless components, and you're totally free to override the component with your custom needed datas.