dalley-it/contao-catalogue
Composer 安装命令:
composer require dalley-it/contao-catalogue
包简介
Catalog bundle providing RSCE-like schema-driven records with list/reader, filters, prev/next navigation, and multilingual linking.
README 文档
README
Schema-driven catalogues for Contao 5.3++.
This bundle provides:
- Backend catalogue containers (similar to "archives")
- Backend records with schema-defined virtual fields stored as JSON
- Optional nested record items (rows/children)
- Frontend list and reader modules
- Filtering via an indexed taxonomy column
- Prev/next navigation in the reader (within the current filter context)
- tl_news-like language linking via
languageMain
The bundle is designed as a lightweight alternative to data-driven extensions, while keeping the editing experience close to Contao and DCA conventions.
Package and namespaces
- Composer package:
dalley-it/contao-catalogue - PHP namespace:
DalleyIt\ContaoCatalogue\... - Bundle class:
DalleyIt\ContaoCatalogue\DaitContaoCatalogBundle - Database tables:
dait_cc_*
Database tables
dait_cc_catalogue(catalogue container)dait_cc_record(records)data_jsonstores schema fieldsidx_taxonomyis used for filtering (single taxonomy value)idx_relation_idis a generic relation pointer (optional)
dait_cc_record_item(optional nested items for a record; supports nesting viaparent_id)dait_cc_dictionaryanddait_cc_dictionary_item(backend-managed option lists)
Schemas
Schemas are PHP files located in:
<project>/contao/catalog_schemas/<schema_key>.php
A schema file returns an array with (typical) keys:
fields: associative array of virtual field definitionsindexes: mapping of database index columns to JSON pathsitemTypes: optional definitions fordait_cc_record_item.type
An example schema is included:
contao/catalog_schemas/example.php
Dictionary-backed select fields
Use inputType => 'dictionarySelect' to populate a select widget from a dictionary.
You can define a dictionary key either:
- per field (
dictionaryKeyin the field definition), or - per catalogue (
dait_cc_catalogue.dictionaryKey) as a default.
Frontend modules
dait_catalogue_list(template:mod_dait_catalogue_list)- Optional taxonomy filter via
?taxonomy=<CODE>
- Optional taxonomy filter via
dait_catalogue_reader(template:mod_dait_catalogue_reader)- Reader parameter:
?item=<alias|id> - Prev/next navigation respects the current
taxonomyfilter
- Reader parameter:
Installation
Install via Composer:
composer require dalley-it/contao-catalogue
Run the database update in Contao Manager / Install Tool.
Configuration workflow (recommended)
- Create a dictionary (optional) to hold taxonomy values.
- Create a catalogue (
dait_cc_catalogue) and set:schema_keyjumpTo(reader page)dictionaryKey(optional, for taxonomy select options)
- Add records to the catalogue.
- Place
dait_catalogue_liston the list page anddait_catalogue_readeron the reader page.
Extending
This bundle intentionally keeps the indexing model minimal (idx_taxonomy, idx_relation_id).
If you need additional filterable fields, extend the record table with more index columns and map them via indexes in your schema.
dalley-it/contao-catalogue 适用场景与选型建议
dalley-it/contao-catalogue 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 4 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 03 月 16 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 dalley-it/contao-catalogue 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 dalley-it/contao-catalogue 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 32
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2026-03-16