twin-elements / page-bundle
CMS 页面
v1.11.0
2023-09-08 11:06 UTC
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-09-08 13:24:51 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],
添加模板配置
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'}
在 messages.LOCALE.yaml 中添加模板名称翻译
page:
templates:
main_template: Main template
second_template: Second template