se7enxweb/enhancedselection2
Composer 安装命令:
composer require se7enxweb/enhancedselection2
包简介
The Enhanced Selection type was initially based on the standard eZ publish Selection ('ezselection') datatype. It's original intent was to provide the same functionality as the standard datatype, but store an identifier instead of an id in the contentobject attribute.
README 文档
README
The Enhanced selection type was initially based on the standard eZ Publish
selection (ezselection) datatype. It's original intent was to provide the
same functionality as the standard datatype, but store an identifier instead
of an ID in the contentobject attribute.
Later on, it was extended to provide more functionality, particularly on the class level.
What does it do?
The end result is exactly the same as the standard selection datatype. It provides a dropdown list of the given options (multiselect is also supported).
The real enhancements are behind the scenes for most users, but they should make the life of the developer/site admin a bit easier.
Then what IS different?
There are two areas that are affected by the enhancements.
The easiest one is on the content object level. The standard selection datatype stores the ID of the option you chose during the edit of an object. While this can be ok for some, it was not what we wanted. If you change the options of the selection datatype, the ID can point to the wrong option. The change we did is right there: it no longer stores an ID, but the identifier of the option you picked. This enables the datatype to track changes in the options as long as identifiers don't change. Where does the identifier come from? Read on, and you'll find out :-)
The second area with enhancements is the content class edit. Several functionalities have been added here in comparison to the standard selection datatype.
First of all, each option you add consists of two fields: the human readable form of the option and the identifier. If you do not specify an identifier, the datatype will generate one for you using the same mechanism as eZ Publish (class identifier, attribute identifier, ...).
Furthermore, there are up and down buttons next to each row (= option). This way, you can easily change the order of the options. The options in the final dropdown list will be displayed in the same order as you can see in the content class edit.
The datatype also supports information collection.
I'm still not sure how it works
Well, why don't you try it then?
Install the extension, create a test class, add the datatype and play with it.
How do I install it?
Please read installation instructions
Version history
-
v1.0:
- Original SCK-CEN extension
-
v1.1:
- Added Solr indexing handler together with
fromString/toStringmethods in datatype
- Added Solr indexing handler together with
-
v2.0:
- Rewrite extension to store the options in the database table instead of serialized array
-
v2.0.1
- Bugfix in migrate script
-
v2.0.2
- Add database schema file
Disclaimer & copyright
Enhanced selection extension for eZ Publish 4.x Copyright (C) 2003-2008 SCK-CEN (Belgian Nuclear Research Centre)
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
This extension has been developed as part of projects inside the Belgian Nuclear Research Centre (http://www.sckcen.be).
The extension is tailored to fit our needs, and is shared with the community as is.
YMMV!
se7enxweb/enhancedselection2 适用场景与选型建议
se7enxweb/enhancedselection2 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 408 次下载、GitHub Stars 达 1, 最近一次更新时间为 2024 年 03 月 06 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 se7enxweb/enhancedselection2 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 se7enxweb/enhancedselection2 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 408
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 11
- 依赖项目数: 5
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-only
- 更新时间: 2024-03-06