wernerkrauss/ss-stringfield-replace
Composer 安装命令:
composer require wernerkrauss/ss-stringfield-replace
包简介
Extension for replacing symbols to html in DBString subclasses
关键字:
README 文档
README
This module provides a simple search/replace functionality for DBString derived fields (Text, HTMLText, Varchar) in Silverstripe CMS 4.
Requirements
- Silverstripe > 4
Installation
Install this package using composer
composer require wernerkrauss/ss-stringfield-replace ^0.1
Features:
You can define maps to replace in your text field. By default it replaces:
(c)becomes©(r)becomes<sup>®</sup>(tm)becomes<sup>™</sup>|becomes<br>
This can be used in templates using the Replace method, e.g.
<h1>$Title.Replace</h1>
Configuration
You can add your own replacements by modifying SilverStripe\ORM\FieldType\DBString.replacements config
统计信息
- 总下载量: 167
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-04-29