twin-elements / page-bundle
Pages for CMS
Installs: 170
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^7.4 || ^8.0
- symfony/framework-bundle: ^4.4 || ^5.4
- twin-elements/admin-bundle: ^1.11
- twin-elements/form-extensions: ^1.4
- twin-elements/response-parameter-builder: ^1.0
- twin-elements/seo-bundle: ^1.0
Conflicts
- twin-elements/admin-bundle: <1.11.3
This package is auto-updated.
Last update: 2024-11-08 13:49:08 UTC
README
resource: "@TwinElementsPageBundle/Controller/Admin/"
prefix: /admin
type: annotation
requirements:
_locale: '%app_locales%'
defaults:
_locale: '%locale%'
_admin_locale: '%admin_locale%'
options: { i18n: false }
TwinElements\PageBundle\TwinElementsPageBundle::class => ['all' => true],
add templates config
twin_elements_page:
template_translator_prefix: 'page.templates'
templates:
- {name: 'main_template', path: 'front/page/page.html.twig', isDefault: true}
- {name: 'second_template', path: 'front/page/second_page.html.twig'}
in messages.LOCALE.yaml
add template name translations
page:
templates:
main_template: Main template
second_template: Second template