fromholdio/silverstripe-plain-text 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

fromholdio/silverstripe-plain-text

最新稳定版本:1.0.0

Composer 安装命令:

composer require fromholdio/silverstripe-plain-text

包简介

关键字:

README 文档

README

Takes a Data Object (most often a Page) and, using the configuration you set, converts the content of the Data Object to plain text, and saves into ContentPlain field.

For example, with the right configuration, the ContentPlain field will contain a plain text version of the main content of a Page, with all shortcodes replaced with their content, all HTML tags removed/replaced, derived from either or both of the page's Content field and/or the visible Elements inside any relevant ElementalAreas.

This module can be used in conjunction with fromholdio/silverstripe-text-statistics, which can then use the ContentPlain field to calculate statistics on the content, such as word count, reading time, readability scores/standards, etc.

Alternatively or additionally, this single plain text field can be used for fast full-text searching of the content; and/or for deriving a summary of the content for use in search results, metadata, etc.

Requires Silverstripe 6+ (see branch 1.x for Silverstripe 4 & 5 support.)

Docs and examples of configurations to achieve the above to come.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2024-01-04