teufels / tt3-poi
SVG 图形上的兴趣点元素
1.0.10
2024-08-09 12:08 UTC
Requires
- teufels/tt3-image: ^1.0
- typo3/cms-core: ^12.4
README
[ ṯeufels ] 兴趣点
一个 SVG 图形上的兴趣点元素
此版本支持 TYPO3
Composer 支持
composer req teufels/tt3-poi
需求
teufels/tt3-image
SVG 需求
- 要使用的对象必须有一个唯一的 id 和类 "poi"
如何使用
- 使用 composer 安装
- 导入静态模板(在 sitepackage 之前)
- 获取包含要使用的对象(具有唯一的 id 和类 "poi")的 SVG 图形
- 覆盖模板(可选)
- 调整模板
- 调整样式
- 调整模板
从 hive_poi 更新和迁移
- 在 composer.json 中将
beewilly/hive_poi
替换为"teufels/tt3-poi":"^1.0"
- Composer 更新
- 包含 TypoScript 集合
[teufels] Point of Interest
- 分析数据库结构 -> 添加表和字段(不要删除旧的 hive_poi)
- 执行升级向导
[teufels] Point of Interest
- 分析数据库结构 -> 删除表和未使用的字段(现在删除旧的 hive_poi)
- 类和 id 已更改 -> 在 sitepackage 中调整样式(例如,tx-hive-poi => tx-tt3-poi)
- 检查并调整用户组访问权限
代码示例
覆盖模板
plugin.tx_tt3poi {
view {
templateRootPaths >
templateRootPaths {
0 = EXT:tt3_poi/Resources/Private/Templates/
10 = EXT:sitepackage/Resources/Private/Overrides/tt3_poi/Templates/
}
}
}
变更日志
- 1.0.10 更改插件标题
- 1.0.9 修复 renderContentElementPreviewFromFluidTemplate 修改了参数
- 1.0.7 - 1.0.8 为自定义类添加 eval 规则
- 1.0.6 向 POI 元素添加关闭按钮以及通过数据属性禁用滚动到结果的选项
- 1.0.5 修改 c-
- 1.0.4 将 "滚动到结果" 外部化到自己的函数中,以便更容易覆盖并添加查询条件
- 1.0.3 修复 poi--label 不切换激活状态
- 1.0.2 将已弃用的 allowTableOnStandardPages() 更改为 ignorePageTypeRestriction (https://docs.typo3.org/m/typo3/reference-tca/12.4/en-us/Ctrl/Properties/Security.html#ctrl-security-ignorepagetyperestriction)
- 1.0.1 修复未定义的数组键错误
- 1.0.0 从 hive_poi 初始版本