m12/neos-utils
Composer 安装命令:
composer require m12/neos-utils
包简介
Neos utils library
README 文档
README
Extra helpers / libraries used by other M12.* Neos plugins.
M12.Utils:WrapRemover
Removes extra DIV wrapper - by definition needed by Neos back-end (both those around Conent Collection or around any other Node Type) - but not really necessary when in front-end (live) workspace.
This helper only works when exactly <div class="[wrapperClass]">[content]</div> is found around element - if extra attributes or classes were added, it won't run. Also, if you changed default class around Neos NodeTypes (defined for TYPO3.Neos:Content in attributes.class.@process.nodeType, you'll have to adjust .wrapperClass accordingly.
Example usage:
To remove wrapper <div class="neos-contentcollection">...</div>, add to your TypoScript:
prototype(TYPO3.Neos:ContentCollection) {
@process.wrapRemover = M12.Utils:WrapRemover
@process.wrapRemover.wrapperClass = 'neos-contentcollection'
}
To remove wrapper e.g. around Text element <div class="typo3-neos-nodetypes-text">...</div>, add to your TypoScript:
prototype(TYPO3.Neos.NodeTypes:Text) {
@process.wrapRemover = M12.Utils:WrapRemover
@process.wrapRemover.wrapperClass = 'typo3-neos-nodetypes-text'
}
Installation
It's defined as typo3-flow-plugin, hence needs to be placed in /Packages/Plugins/ directory. Do this manually by clonning this repository there or add it as a dependency to your site package:
composer.json:
"repositories": [
{ "type": "git", "url": "https://github.com/million12/M12.Utils.git" }
],
"require": {
"your/dependencies": "*",
"m12/utils": "*"
},
And then run composer update.
m12/neos-utils 适用场景与选型建议
m12/neos-utils 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.22k 次下载、GitHub Stars 达 3, 最近一次更新时间为 2014 年 05 月 24 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 m12/neos-utils 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 m12/neos-utils 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 2.22k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 7
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-05-24