https://github.com/agoat/contao-postsnpages-bundle
An alternative Contao content organization with posts and pages
https://github.com/agoat/contao-postsnpages-bundle
contao content-management page-articles pages posts
Last synced: 26 days ago
JSON representation
An alternative Contao content organization with posts and pages
- Host: GitHub
- URL: https://github.com/agoat/contao-postsnpages-bundle
- Owner: agoat
- License: lgpl-3.0
- Created: 2017-01-13T10:07:11.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2021-03-17T17:21:39.000Z (almost 5 years ago)
- Last Synced: 2026-01-14T15:48:24.315Z (28 days ago)
- Topics: contao, content-management, page-articles, pages, posts
- Language: PHP
- Homepage:
- Size: 387 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Posts'n'Pages for Contao 4
[](http://packagist.org/packages/agoat/contao-postsnpages)
[](http://packagist.org/packages/agoat/contao-postsnpages)
[](http://packagist.org/packages/agoat/contao-postsnpages)
## About
An alternative structure to manage content in contao - similar to Wordpress but with a more comprehensive approach. It's based on the idea that a website basically contains 3 types of content:
#### Post content
Content that refers to an article or topic (which is typical for blogs), which can be called under a separate url, but which are also listed in an overview within a page (usually as a teaser).
#### Page content
Content that refers to a single page and which is only available on this page (like team pages, contact pages).
#### Static content
Content that is integrated as a module in the page layout and which can be seen on several or all pages (like footers or copyright informations).
## Notice
If installed into an existing project, all page articles will disappear (they still exists in the database). A automatic migration of the page articles to the new page containers will be implemented in a future version.
## Install
### Contao manager
Search for the package and install it
```bash
agoat/contao-postsnpages
```
### Managed edition
Add the package
```bash
# Using the composer
composer require agoat/contao-postsnpages
```
Registration and configuration is done by the manager-plugin automatically.
### Standard edition
Add the package
```bash
# Using the composer
composer require agoat/contao-postsnpages
```
Register the bundle in the AppKernel
```php
# app/AppKernel.php
class AppKernel
{
// ...
public function registerBundles()
{
$bundles = [
// ...
// after Contao\CoreBundle\ContaoCoreBundle
new Agoat\PostsnPagesBundle\AgoatPostsnPagesBundle(),
];
}
}
```