zicht / page-bundle
Zicht PageBundle
Installs: 25 542
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 6
Type:symfony-bundle
Requires
- php: ^8.0
- sonata-project/admin-bundle: ^4.21.0
- symfony/config: ^6.4
- symfony/console: ^6.4
- symfony/security-core: ^6.4
- twig/twig: ^2.7 || ^3
- zicht/admin-bundle: ^9
- zicht/framework-extra-bundle: ^11
- zicht/menu-bundle: ^7
- zicht/url-bundle: ^8
- zicht/util: ^2
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3
- phpunit/phpunit: ^9.6
- symfony/form: ^6.4
- vimeo/psalm: ^5
- dev-release/9.x
- dev-release/8.x
- 9.0.0
- 8.2.1
- 8.2.0
- 8.1.0
- 8.0.3
- 8.0.2
- 8.0.1
- 8.0.0
- 7.0.6
- 7.0.5
- 7.0.4
- 7.0.3
- 7.0.2
- 7.0.1
- 7.0.0
- 6.4.5
- 6.4.4
- 6.4.3
- 6.4.2
- 6.4.1
- 6.4.0
- 6.3.5
- 6.3.4
- 6.3.3
- 6.3.2
- 6.3.1
- 6.3.0
- 6.2.4
- 6.2.3
- 6.2.2
- 6.2.1
- 6.2.0
- 6.1.5
- 6.1.4
- 6.1.3
- 6.1.2
- 6.1.1
- 6.1.0
- 6.0.3
- 6.0.2
- 6.0.1
- 6.0.0
- 5.0.16
- 5.0.15
- 5.0.14
- 5.0.13
- 5.0.12
- 5.0.11
- 5.0.10
- 5.0.9
- 5.0.8
- 5.0.7
- 5.0.6
- 5.0.5
- 5.0.4
- 5.0.3
- 5.0.2
- 5.0.1
- 5.0.0
- 4.0.7
- 4.0.6
- 4.0.5
- 4.0.4
- 4.0.3
- 4.0.2
- 4.0.1
- 4.0.0
- 3.0.12
- 3.0.11
- 3.0.10
- 3.0.9
- 3.0.8
- 3.0.7
- 3.0.6
- 3.0.5
- 3.0.4
- 3.0.3
- 3.0.2
- 3.0.1
- 3.0.0
- 2.7.7
- 2.7.6
- 2.7.5
- 2.7.4
- 2.7.3
- 2.7.2
- 2.7.1
- 2.7.0
- 2.6.1
- 2.6.0
- 2.5.8
- 2.5.7
- 2.5.6
- 2.5.5
- 2.5.4
- 2.5.3
- 2.5.2
- 2.5.1
- 2.5.0
- 2.4.1
- 2.4.0
- 2.3.1
- 2.3.0
- 2.2.8
- 2.2.7
- 2.2.6
- 2.2.5
- 2.2.4
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2.0
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.1
- 2.0.0
- 1.10.2
- 1.10.0
- 1.4.0
- 1.3.6
- 1.3.5
- 1.3.4
- 1.3.3
- 1.3.2
- 1.3.1
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.2
- 1.0.1
- 1.0
- dev-release/7.x
- dev-release/6.x
- dev-feature/TIN-FIX-COLLECTION-TYPE
- dev-fix/content-items
- dev-release/5.x
- dev-release/4.x
- dev-release/3.x
- dev-release/2.x
This package is auto-updated.
Last update: 2024-11-02 15:38:53 UTC
README
Provides composable pages through a simple entity model.
Approach
The idea is that any content page of any type is always composed of a
few "content items", which are in turn of any type. This is modelled
in a one-to-many related of Page
-> ContentItem
, where both
Page
and ContentItem
follow an Entity inheritance model, so
"type" of page and "type" of content item are directly implemented
by simply having another derivative class.
A piece of the puzzle
See the documentation for zicht/cms
(https://github.com/zicht/cms)
for more information on how the zicht/page-bundle
relates to the
other Zicht Bundles
Voters
To enable the use of voters in your configuration you should properly
configure security.yml
or in the security
part of your config.
At least you should have these lines:
security:
access_decision_manager:
strategy: unanimous
PageVoter
The PageVoter requires the page to have Zicht\Bundle\PageBundle\Model\PageInterface
implemented.
This Voter looks for the isPublic
public function to check whether a page can be displayed to the public.
ScheduledContentVoter
The ScheduledContentVoter requires the page to have Zicht\Bundle\PageBundle\Model\ScheduledContentInterface
implemented.
With this voter a page can be scheduled for publication.
Debug pages
Add a reference to the debug pages route/controller to be able to view the "Debug pages" page. Add it in
config/routes/zicht_page.yaml
. Use condition: '%kernel.debug%'
to only enable the route on environments
where debug mode is enabled (typically local dev environment and the testing environment). Visit the
/{_locale}/debug/pages
path to only show pages and their information per language/locale (/nl/debug/pages
for instance). If you want to view all pages and their information (or don't have a multi language site),
visit the path /debug/pages
.
zicht_page_debug: resource: '@ZichtPageBundle/Resources/config/routing_debug.yml' prefix: '/' condition: '%kernel.debug%'
Maintainers
- Boudewijn Schoon boudewijn@zicht.nl
- Erik Trapman erik@zicht.nl