dalley-it/contao-catalogue 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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_json stores schema fields
    • idx_taxonomy is used for filtering (single taxonomy value)
    • idx_relation_id is a generic relation pointer (optional)
  • dait_cc_record_item (optional nested items for a record; supports nesting via parent_id)
  • dait_cc_dictionary and dait_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 definitions
  • indexes: mapping of database index columns to JSON paths
  • itemTypes: optional definitions for dait_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 (dictionaryKey in 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>
  • dait_catalogue_reader (template: mod_dait_catalogue_reader)
    • Reader parameter: ?item=<alias|id>
    • Prev/next navigation respects the current taxonomy filter

Installation

Install via Composer:

composer require dalley-it/contao-catalogue

Run the database update in Contao Manager / Install Tool.

Configuration workflow (recommended)

  1. Create a dictionary (optional) to hold taxonomy values.
  2. Create a catalogue (dait_cc_catalogue) and set:
    • schema_key
    • jumpTo (reader page)
    • dictionaryKey (optional, for taxonomy select options)
  3. Add records to the catalogue.
  4. Place dait_catalogue_list on the list page and dait_catalogue_reader on 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 我们能提供哪些服务?
定制开发 / 二次开发

基于 dalley-it/contao-catalogue 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 4
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 32
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2026-03-16