wernerkrauss / explainable
使用短代码管理缩写词和生僻词的 Silverstripe 模块。有利于网站无障碍访问。
0.0.3
2015-07-14 14:40 UTC
Requires
- composer/installers: *
- sheadawson/silverstripe-shortcodable: 0.1.x@stable
- silverstripe/cms: 3.*
- silverstripe/framework: 3.*
Suggests
- silverstripe/googlesitemaps: create and add DataObjects to a sitemap.xml
This package is auto-updated.
Last update: 2024-09-05 17:48:08 UTC
README
Silverstripe 模块,用于使用短代码管理缩写词和生僻词。有利于网站无障碍访问。
请参阅 https://www.wuhcag.com/abbreviations/ 和 https://www.wuhcag.com/unusual-words/ 以获取相应的指南。
要求
安装
手动下载和安装或使用 composer。
composer require wernerkrauss/explainable
配置
将类型为 "AbbrevationPage" 或 "ExplanationPage" 的页面添加到您的 CMS 中。在那里您可以在网格字段中添加新的缩写词或解释。
您可以使用内置的短代码在 CMS 中链接到这些缩写词,使用 UI 选择缩写词。
列表页面按字母顺序列出所有缩写词或解释,并按首字母分组。您可能需要更新模板以适应您的需求。
添加到 Google 网站地图
如果您已安装 GoogleSitemap 模块,可以将缩写词和解释添加到 Google 网站地图。只需将以下代码添加到您的 mysite/_config.php
GoogleSitemap::register_dataobject('Abbreviation', 'weekly', '0.5');
GoogleSitemap::register_dataobject('Explanation', 'weekly', '0.5');
待办事项
- 在短代码 UI 中直接创建新的缩写词或解释?使用“添加新”按钮可以实现这一点。也许我们需要调整可短代码控制器?