定制 h4ck3r31/getenv-typoscript 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

h4ck3r31/getenv-typoscript

Composer 安装命令:

composer require h4ck3r31/getenv-typoscript

包简介

This TYPO3 extension provides a simple way to access environment variables within TypoScript at places where stdWrap is not available.

README 文档

README

Description

This extension provides a simple way to access environment variables within TypoScript at places where stdWrap is not available. For instance on TEXT cObjects page.10.data = getenv:MY_ENV_VARIABLE works out of the box even without this extension. For scenarios where stdWrap is not available, this extension kicks in and allows to bridge the gap by using the getenv TypoScript modifier.

General usage: property := getenv(MY_ENV_VARIABLE)

Examples

The following example overrides TYPO3's baseUrl setting which does not support stdWrap out of the box and thus allows to make the setting more dynamic.

config.baseURL = getenv(MY_BASE_URL)

The next example allows to configure Solr server settings in TypoScript which as well don't support stdWrap.

plugin {
    tx_solr {
        solr {
            host := getenv(T3_SOLR_HOST)
            port := getenv(T3_SOLR_PORT)
            path := getenv(T3_SOLR_PATH)
            username := getenv(T3_SOLR_USERNAME)
            password := getenv(T3_SOLR_PASSWORD)
        }
    }
}

Installation

composer require h4ck3r31/getenv-typoscript

or

cd typo3conf/ext/
git clone https://github.com/ohader/getenv_typoscript.git

Once the sources are available, the extension has to be enabled, e.g. using the Extension Manager or making use of TYPO3 Console.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2017-07-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固