novactive/ezstatictemplatesbundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

novactive/ezstatictemplatesbundle

最新稳定版本:v3.1.4

Composer 安装命令:

composer require novactive/ezstatictemplatesbundle

包简介

This bundle is used to expose twig templates to a siteaccess

README 文档

README

This repository is what we call a "subtree split": a read-only copy of one directory of the main repository. It is used by Composer to allow developers to depend on specific bundles.

If you want to report or contribute, you should instead open your issue on the main repository: https://github.com/Novactive/Nova-eZPlatform-Bundles

Documentation is available in this repository via .md files but also packaged here: https://novactive.github.io/Nova-eZPlatform-Bundles/master/StaticTemplatesBundle/README.md.html

Downloads Latest version License

Novactive eZ Static Templates bundle is an eZ Platform bundle providing an ultra easy way to access twig templates from an url.

It uses the siteaccess and the design engine provided by eZ Platform.

Features

When you access a siteaccess in the siteaccess group static_group, it will take the url and show the twig template having the corresponding path.

You can configure as many siteaccess as you want, and using the design engine you can configure a different theme for each siteaccess.

As we are using the siteaccess feature, u can also use the permissions to control the access.

Example

Considering a theme static_test, a siteaccess static-test is automatically generated. The siteaccess is then matched by URI, the url http://localhost/static-test/news/details will show the template in themes\static_test\news\details.html.twig

That's it!

Installation

Get the bundle

Add the lib to your composer.json, run composer require novactive/ezstatictemplatesbundle to refresh dependencies.

Then inject the bundle in the bundles.php of your application.

    Novactive\Bundle\EzStaticTemplatesBundle\EzStaticTemplatesBundle::class => [ 'all'=> true ],

Configuration

None!

The siteaccess configuration is autogenerated based on existing themes whose name start with "static_"

统计信息

  • 总下载量: 52.04k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 11
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-06-05