Developed with love by KnpLabs Hire us for your project!
0

StaticPageContentBundle

by c33s

provide static pages in symfony

StaticPageContentBundle

Build Status
SemVer
Latest Unstable Version
Latest Stable Version
License
SensioLabsInsight
![project status]
Scrutinizer Code Quality

Project is unmaintained

use the official way for this https://symfony.com/doc/3.4/templating/render_without_controller.html or
https://gitlab.com/zero-gravity/zero-gravity-cms.git

Provide an easy way to serve static page content in your Symfony2 Projects with
Twig.

Documentation

For documentation, see:

Resources/doc/

Read the documentation

Contributing

See CONTRIBUTING file.

Credits

License

This bundle is released under the MIT license. See the complete license in the
bundle:

Resources/doc/LICENSE

Read the license

c33s_static_page_content:

# Template that the content wrapper template will extend from
base_template: ::base.html.twig

# Template file name extension
template_extension: .html.twig

# Relative path from the views directory to a directory containing
the page templates.
content_dir: Content

# Bundle that holds the static pages
content_bundle: C33sStaticPageContentBundle

# Template used to wrap your static pages
wrapper_template: C33sStaticPageContentBundle::layout.html.twig

# Should the pages use the twig sandbox extension?
(http://twig.sensiolabs.org/doc/api.html#sandbox-extension)
NOTE: it only works when using the default content template
use_template_sandbox: false

# use templates for the requested locale if they exist.
These templates should be placed in a folder named after the locale in the content directory.
prefer_locale_templates: false