mouf / cms.scaffolder
This package allow you to auto generate functional CMS components.
Installs: 82
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 9
Forks: 1
Open Issues: 0
Type:mouf-library
Requires
- mouf/codestylefixservice: ~1.0
- mouf/database.patcher: ~2.0
- mouf/database.tdbm: ^4.0.0-beta15
- mouf/html.htmlelement: ~2.0
- mouf/mvc.splash: ~7.0
- mouf/security.rightsservice-splash: ~4.0
- symfony/filesystem: ~2.0 | ~3.0
This package is auto-updated.
Last update: 2024-12-15 05:13:48 UTC
README
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 :
- 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.
- 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
- The library will automatically :
- Purge cache -- to map the new URLs
- 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.