lukaschel/pimcore-bundle-configuration 问题修复 & 功能扩展

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

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

lukaschel/pimcore-bundle-configuration

Composer 安装命令:

composer require lukaschel/pimcore-bundle-configuration

包简介

Individual pimcore bundle configurations for sites and languages

README 文档

README

With this bundle it is possible to deposit individual configurations for each installed Pimcore bundle. Individual for each site and language.

Installation

"require" : {
    "lukaschel/pimcore-bundle-configuration" : "~1.0.0"
}

Enable and install the bundle over the pimcore extension manager or the cli tool.

Just put in your bundle main file (for example: TestBundle.php)

public function getAdminIframePath()
{
    return '/admin/pimcoreconfiguration/bundle'.str_replace(__NAMESPACE__, '', __CLASS__);
}

Configuration

Go to the pimcore extension manager you should now get a "Configure" column.

Here you can config the "default" options for the bundle. This config will be located under your bundle resources folder (TestBundle/Resources/config/bundle/bundle.yml)

The Yaml files for the root site and the customs sites will be located under "/var/bundles/PimcoreConfigurationBundle/Bundles/TestBundle/name_language.yml".

In this files only the values will be stored witch are different to the default configurations.

Usage

You can get the configured options by the service:

$service = $this->container->get('lukaschel.bundleconfiguration');
$service->getConfig($key);

Now you get the configuration for the current requested site, language and bundle;

When you want to get a specific config you can just put the parameters to the config call

$service->getConfig($key, $siteRootId, $language, $bundleName);

In your template you can just use the twig extension by calling:

{{ bundleconfiguration('key') }}

Copyright and license

For licensing details please visit LICENSE.md

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 1
  • 开发语言: JavaScript

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2019-03-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固