liquidlight/module-data-listing
Composer 安装命令:
composer require liquidlight/module-data-listing
包简介
Filterable, searchable and sortable datatables for the TYPO3 backend. Fe_users comes as default.
README 文档
README
Overview
This package provides you with a backend datatable view of fe_users allowing you to sort, search and export your fe_users as well as filter by usergroup.
By default, the following columns are shown:
- ID
- Username
- Usergroup
- Title
- First name
- Last name
By default, the following columns are searchable:
- ID
- Username
- First name
- Last name
Settings
There are a few different settings that can be set on a site-by-site basis via typoscript.
Joins
It is possible to bolt on data from related tables by making use of the module.tx_moduledatalisting.settings.joins object where:
typecan be leftJoin, rightJoin or innerJointableis the name of the related tablelocalIdentifieris the unique identifier of the related tableforeignIdentifieris the matching field in the fe_users table
Setup
module.tx_moduledatalisting {
settings {
joins {
1 {
type = leftJoin
table = related_table
localIdentifier = uid
foreignIdentifier = related_table_uid
}
}
}
}
Additional columns
It is possible to pull in additional columns from the fe_users table as well as columns from any join tables by making use of the module.tx_moduledatalisting.settings.additionalColumns object where:
tableis the name of the table you wish to pull the additional column from (this can be fe_users or any joined tables)columnis the name of the column you wish to pull inlabelis the label that is used in the datatable header
setup
module.tx_moduledatalisting {
settings {
additionalColumns {
table {
column = label
}
}
}
}
Searchable columns
The default searchable columns are specified above however it is possible to add and/or remove columns from this list by making use of the module.tx_moduledatalisting.settings.searchableColumns object where:
tableis the name of the table you wish to pull the searchable column from (this can be fe_users or any joined tables)columnis the name of the column you wish to make searchable
setup
module.tx_moduledatalisting {
settings {
searchableColumns := addToList(table.column1,table.column2)
searchableColumns := removeFromList(table.column3)
}
}
It is also possible to completely reset the searchable columns:
module.tx_moduledatalisting {
settings {
searchableColumns = table.column1,table.column2
}
}
Icons
The Module Data Listing package comes with several pre-packaged icons you can use for your custom modules. We always welcome more additions, so if you create an icon and would like it included as standard, please create an issue or submit a PR.
Usage
To use an icon, use the iconIdentifier from the table below when using the registerModule method.
The module-listing-users icon is used with the default tx_module_data_listing_feusers module.
Available Icons
The icons currently available are:
| iconIdentifier | preview |
|---|---|
module-listing-company |
|
module-listing-map |
|
module-listing-tools |
|
module-listing-users |
Upgrading to 1.2.0
- Show the contents of any overridden filters (add the class of
show) - Update DataTables JavaScript (see below)
Version 1.2.0 comes with DataTables 2.x, which uses the new layout property.
If you have a local JavaScript file for you custom DataTables, you can remove the dom property and replace with layout.
- 'dom': '<\'form-inline form-inline-spaced\'lf>prtipB', + 'layout': { + bottom2: 'buttons', + },
liquidlight/module-data-listing 适用场景与选型建议
liquidlight/module-data-listing 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 6.05k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2021 年 11 月 09 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「module」 「backend」 「export」 「TYPO3 CMS」 「fe_users」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 liquidlight/module-data-listing 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 liquidlight/module-data-listing 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 liquidlight/module-data-listing 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Bulk export of sylius resources
This bundle offers a simple backend explanation form field (inputType).
Preview of settings in footer of tt_content element in page module.
Yii2 export extension
An interactive tour through the TYPO3 backend.
crud widgets for laravel, to make an admin in few lines of code
统计信息
- 总下载量: 6.05k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 18
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2021-11-09