定制 zigit-dev/textformatter_tokens 二次开发

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

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

zigit-dev/textformatter_tokens

最新稳定版本:1.0.1

Composer 安装命令:

composer require zigit-dev/textformatter_tokens

包简介

Allows other modules to register tokens and replace them with actual values.

README 文档

README

Overview

The TextformatterTokens module allows other modules to register tokens and replace them with actual values.

Installation

  1. Enable the TextformatterTokens module.
  2. Enable the SiteTokens module.
  3. Enable the TextformatterTokens text formatter for a field.

Usage

Use tokens provided by the SiteTokens module inside a field that has the TextformatterTokens text formatter enabled. Save and display your page. The tokens should be replaced with the actual content.

Example Tokens

  • [site:name]
  • [page id=123] where id is the ID of the page you want to embed its body field.

Debugging

You can view logs under your ProcessWire admin dashboard at Setup > Logs > tokens.

Writing own tokens

To create custom tokens, refer to the SiteTokens.module file for an example implementation.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-07-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固