承接 moritz-sauer-13/textformatter 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

moritz-sauer-13/textformatter

最新稳定版本:2.0.0

Composer 安装命令:

composer require moritz-sauer-13/textformatter

包简介

Text Formatting Extension to format normal Text in the CMS

README 文档

README

This module can be used to format text in default textfields by adding specific tags in between the text to style it in a custom way. The formatter will replace the text with ex. -Tags or spans with a special class for color styles. Tags can also be fully customized via the "updateReplaceableTags" extension-hook.

How To use:

To display the Formatting hint in the CMS simply add this in you getCMSFields: $fields->dataFieldByName('Title')->setDescription(TextFormatter::getFormattingDescription());

To output the formatted Text in the Frontend you need a special function like this one:

public function FrontendTitle()
{
  return TextFormatter::formattedText($this->Title);
}

grafik

grafik

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2024-09-24