定制 jop-software/typo3-conf-js 二次开发

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

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

jop-software/typo3-conf-js

最新稳定版本:v2.0.2

Composer 安装命令:

composer require jop-software/typo3-conf-js

包简介

TYPO3 view helper to load extension configuration in JavaScript

README 文档

README

TYPO3 EXT:conf_js

Access your ext_conf in JavaScript

CI Pipeline

Professional Support

Professional support is available, please contact info@jop-software.de for more information.

Installation

Install this extension with composer.

composer require jop-software/typo3-conf-js

Usage

The extension provides a simple ViewHelper that generated a <script> tag that makes the configuration available in JavaScript. The ViewHelper gets the extKey as an input, so you can control from which configuration you want to load the configuration.

Execute the ViewHelper in a fluid template

{namespace confJs=JopSoftware\TYPO3\ConfJs\ViewHelpers}
<confJs:extensionConfiguration extKey="my_ext_key" />

And access the Configuration in JavaScript later

let configuration = window.extConf.get("my_ext_key");

You can also find an extension, implementing this behaviour for testing in ./Tests/Packages/testing-site-package.

Security

Many times the extension configuration of an extension does contain secret information - like API Keys - that should not get exposed to the end user.

Currently, the extension always exports the entire extension configuration, but you can choose which extensions get exposed.

There already exists an issue (#4) about only exposing parts of the extension configuration, but this is not implemented at the moment.

Supported TYPO3 Versions

Extension Version TYPO3 Version PHP-Version
1.x 11.5 7.4 - 8.0
2.x 12.0 8.1

Local Development

We use DDEV for local development.

You get a complete ddev setup in this repository, just run ddev start.

License

This project is licensed under GPL-2.0-or-later, see the LICENSE file for more information.

© 2022, jop-software Inh. Johannes Przymusinski

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2022-09-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固