twin-elements/page-bundle

Pages for CMS

Installs: 168

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:symfony-bundle

v1.11.0 2023-09-08 11:06 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