Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

typo3-records-list-typestypo3 记录列表类型

Agent Skill

typo3-records-list-types 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

930

周安装

38

GitHub Stars

26

下载量

298
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:typo3-records-list-types(typo3 记录列表类型)
来源仓库:https://github.com/dirnbauer/webconsulting-skills
仓库路径:skills/typo3-records-list-types
安装命令:
npx skills add https://github.com/dirnbauer/webconsulting-skills --skill typo3-records-list-types
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/dirnbauer/webconsulting-skills --skill typo3-records-list-types

简介

typo3-records-list-types 用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词、任务场景或来源线索快速定位候选结果。
  • 通过 npx skills add 命令从指定仓库安装,需结合原始 README 核验具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 当前无原始 SKILL.md 内容可参考,功能描述基于通用检索场景推断。

SKILL.md

TYPO3 Records List Types

Compatibility: TYPO3 v14.0+ / PHP 8.3+ Extension key: records_list_types / Composer package name: webconsulting/records-list-types GitHub: https://github.com/dirnbauer/typo3-records-list-types Extension version: Use the GitHub repository / composer.json of webconsulting/records-list-types as the source of truth — this skill’s YAML version is for the skill document only. Composer / Packagist: Confirm on Packagist whether webconsulting/records-list-types is published. If not, add a repositoriesvcs entry in the root composer.json pointing at the GitHub repo, then composer require vendor/package:dev-main (or a tag). Plain composer require webconsulting/records-list-types fails until the package is registered or aliased.
TYPO3 API First: Always use TYPO3's built-in APIs, core features, and established conventions before creating custom implementations. Do not reinvent what TYPO3 already provides. Always verify that the APIs and methods you use exist and are not deprecated in TYPO3 v14 by checking the official TYPO3 documentation.

1. Overview

Transforms the TYPO3 backend Records module with multiple view modes:

ViewDescriptionBest for
ListStandard TYPO3 table (unchanged)Data-heavy tables, system records
GridCard layout with thumbnails, drag-and-dropNews, products, team members, media
CompactDense single-line rows, fixed columnsAddress books, logs, settings, bulk data
TeaserMinimal cards with title, date, excerptBlog posts, events, press releases
CustomYour own views via TSconfig + FluidTimeline, kanban, catalog, gallery

All views include: pagination, sorting, search, record actions, workspace indicators, dark mode, WCAG 2.1 accessibility.

Features

  • Grid View -- Card-based layout with thumbnails, drag-and-drop reordering, and field display
  • Compact View -- Dense single-line rows with fixed columns and horizontal scrolling
  • Teaser View -- News-style cards with title, date, and description excerpt
  • Custom Views -- Register your own view types via PSR-14 events or TSconfig
  • Drag & Drop -- Mouse and keyboard reordering with full WCAG 2.1 accessibility
  • Language Flags -- Language flag icons displayed per record in grid cards
  • Workspace Support -- Color-coded indicators for new, modified, moved, and deleted records
  • Dark Mode -- Full compatibility with TYPO3's dark mode (light/dark themes)
  • Per-Table Config -- Configure title, description, image, and display fields via TSconfig
  • User Preferences -- View mode is persisted per backend user via AJAX
  • Sorting Controls -- Manual drag ordering and field-based sorting with direction toggle
  • Pagination -- Matches TYPO3 Core: multi-table mode shows limited records with "Expand table" button, single-table mode shows full pagination (record range, page input, first/prev/next/last)
  • Image Preview Hint -- Subtle notice below thumbnails reminding editors that the image may not appear on the frontend for certain record types
  • Zero-PHP Extensibility -- Add new view types with just TSconfig + Fluid template + CSS, no PHP classes needed
  • Search -- Client-side search filtering across all view modes
  • Accessibility -- WCAG 2.1 compliant keyboard navigation, ARIA labels, and screen reader support

2. Installation

composer require webconsulting/records-list-types
./vendor/bin/typo3 extension:setup -e records_list_types

After activation, view mode toggle buttons appear in the Records module header.

3. View Mode Configuration

Set Default and Allowed Views

mod.web_list.viewMode {
    default = grid                          # Default for new users
    allowed = list,grid,compact,teaser      # Available in toggle
}

Grid Column Count

mod.web_list.gridView.cols = 4    # 2-6 columns (default: 4)

View Mode Resolution Order

  1. URL parameter (?displayMode=grid) -- highest priority
  2. User preference (stored via AJAX, persisted per session)
  3. TSconfig default (mod.web_list.viewMode.default)
  4. Fallback: list

4. Per-Table Field Configuration

Configure which fields appear on cards for each table:

mod.web_list.gridView.table.<tableName> {
    titleField = title              # Card title (default: TCA ctrl.label)
    descriptionField = teaser       # Card body text
    imageField = fal_media          # FAL field for thumbnail
    preview = 1                     # Enable thumbnails (1/0)
}

Common Tables

# News
mod.web_list.gridView.table.tx_news_domain_model_news {
    titleField = title
    descriptionField = teaser
    imageField = fal_media
    preview = 1
}

# Pages
mod.web_list.gridView.table.pages {
    titleField = title
    descriptionField = abstract
    imageField = media
    preview = 1
}

# Content Elements
mod.web_list.gridView.table.tt_content {
    titleField = header
    descriptionField = bodytext
    imageField = image
    preview = 1
}

# Frontend Users
mod.web_list.gridView.table.fe_users {
    titleField = name
    descriptionField = email
    imageField = image
    preview = 1
}

5. View Modes Detail

Grid View

  • Card structure: Header (icon, title, drag handle, actions), optional thumbnail image (16:9), field values body, footer (UID, PID, language flag)
  • Thumbnails: Automatically resolved from FAL image fields (configurable per table)
  • Field display: Type-aware formatting -- booleans as badges, dates in monospace, relations with count indicators, links as clickable, text truncated with ellipsis
  • Two-column field layout: Small fields display side-by-side; text/richtext fields span full width
  • Drag-and-drop: Both mouse and keyboard (Space to grab, arrows to move, Space to drop, Escape to cancel)
  • Record actions: Inline visibility toggle, edit, delete, plus dropdown for info, history, copy, cut
  • State indicators: Hidden records get amber headers; workspace records show blue/purple/cyan/red headers
  • Language flags: Each card shows the record's language flag icon in the bottom-right corner
  • Responsive grid: Auto-fills columns from 320px minimum, scales from 1 column on mobile to multiple on wide screens

Compact View

  • Fixed columns: Icon, UID, and title pinned on the left; status toggle, edit, delete pinned on the right
  • Scrollable middle: Additional fields scroll horizontally between fixed columns
  • Scroll shadows: Visual indicators when content extends beyond the visible area
  • Sortable headers: Click column headers to sort ascending/descending via TYPO3's native dropdown API
  • Zebra striping: Alternating row colors for readability
  • Hidden record styling: Muted background and dimmed title for hidden records

Teaser View

  • Clean design: Title, date with calendar icon, description excerpt (2-line clamp)
  • Status badges: UID pill and hidden/visible indicator
  • Compact actions: Visibility toggle, edit, delete buttons
  • Hidden state: Accent bar on hidden records
  • CSS light-dark(): Native theme switching support

6. Pagination

Matches TYPO3 Core List View behavior:

  • Multi-table mode: Limited records per table with "Expand table" button
  • Single-table mode: Full pagination (record range, page input, first/prev/next/last)
# Global default items per page
mod.web_list.viewMode.itemsPerPage = 100

# Per-type override
mod.web_list.viewMode.types.grid.itemsPerPage = 100
mod.web_list.viewMode.types.compact.itemsPerPage = 300
mod.web_list.viewMode.types.teaser.itemsPerPage = 100

# Disable pagination
mod.web_list.viewMode.types.grid.itemsPerPage = 0

7. Sorting

Tables with TCA sortby support two modes:

  • Manual: Drag-and-drop reordering (default)
  • Field: Sort by column with ascending/descending toggle

A segmented toggle switches between modes. Drag-and-drop supports both mouse and keyboard (Space to grab, arrows to move, Space to drop, Escape to cancel).

8. Custom View Types (Quick Start)

Add a view in 3 steps -- zero PHP required.

Step 1: Register via TSconfig

mod.web_list.viewMode {
    allowed = list,grid,compact,teaser,timeline

    types.timeline {
        label = Timeline
        icon = actions-calendar
        template = TimelineView
        templateRootPath = EXT:my_sitepackage/Resources/Private/Backend/Templates/
        css = EXT:my_sitepackage/Resources/Public/Css/timeline.css
        displayColumns = label,datetime,teaser
        columnsFromTCA = 0
    }
}

Step 2: Create Fluid Template

Copy GenericView.html from the extension as a starting point. Key variables: tableData, tableData.records, record.title, record.displayValues.

Step 3: Add CSS (optional)

Use TYPO3 CSS variables for automatic dark mode:

.timeline-item {
    /* TYPO3 Core fallbacks; `--gv-*` tokens are defined by this extension, not by TYPO3 Core */
    background: var(--typo3-component-bg, #fff);
    border: 1px solid var(--typo3-component-border-color, #d4d4d8);
}
Full documentation: See SKILL-CUSTOM-VIEWS.md for complete reference including template variables, real-world examples, asset loading, PSR-14 registration, and page-scoped views.

Reuse Built-in Templates

No new template needed -- reuse existing ones with custom columns:

# Address book using CompactView with fixed columns
mod.web_list.viewMode.types.addressbook {
    label = Address Book
    icon = actions-user
    template = CompactView
    displayColumns = name,email,phone,company,city
    columnsFromTCA = 0
    itemsPerPage = 500
}

Page-Scoped Views

Restrict views to specific pages:

[traverse(page, "uid") == 42]
    mod.web_list.viewMode {
        allowed = list,timeline
        default = timeline
    }
[END]

9. Column Display

Two modes control which fields appear:

ModeSettingBehavior
Editor-controlledcolumnsFromTCA = 1Respects editor's "Show columns" selection
Fixed layoutcolumnsFromTCA = 0Uses displayColumns list exactly

columnsFromTCA = 1 Resolution Order

  1. Editor's "Show columns" selection (stored per-user per-table)
  2. This extension’s own TSconfig / template resolution — not Core mod.web_list.table.<table>.showFields (that path is not a documented Core column picker). See extension docs and GridConfigurationService behaviour for your release.
  3. TCA ctrl.label and sensible text/date fallbacks (see “Special Column Names” below) — TYPO3 v14 removed ctrl.searchFields; backend search now auto-includes suitable fields and can be tuned per-column via searchable, which is unrelated to this list display.
  4. Label field only (final fallback)

Special Column Names

NameResolves to
labelTCA ctrl.label field (record title)
datetimeFirst date field (datetime, date, starttime, crdate)
teaserFirst description field (teaser, abstract, description, bodytext, short)

10. TSconfig Reference

View Type Options

OptionTypeDefaultDescription
labelstring*required*Display name (supports LLL:)
iconstring*required*TYPO3 icon identifier
descriptionstringTooltip
templatestring<Id>ViewFluid template name
partialstringCardDefault partial
templateRootPathstringCustom template path
partialRootPathstringCustom partial path
layoutRootPathstringCustom layout path
cssstringCSS file (EXT: syntax)
jsstringJS module (@vendor/module.js)
columnsFromTCAbool1Use editor column selection
displayColumnsstringComma-separated field list
itemsPerPageint100Records per page (0 = no pagination)

11. Workspace Support

Records display color-coded indicators in workspaces:

StateColorVisual
NewBlueBlue header + left border
ModifiedPurplePurple header + left border
MovedCyanCyan header + left border
DeletedRedRed header + strikethrough title

Workspace overlays applied via BackendUtility::workspaceOL().

Note: Workspace support is experimental. Visual indicators work, but drag-and-drop within workspaces has limited testing.

12. PSR-14 Events

EventPurpose
RegisterViewModesEventRegister, remove, or modify view types
GridViewButtonBarListenerInjects toggle buttons into DocHeader
GridViewQueryListenerModifies database queries
GridViewRecordActionsListenerCollects record action buttons

Register a View Type via Event

use TYPO3\CMS\Core\Attribute\AsEventListener;
use Webconsulting\RecordsListTypes\Event\RegisterViewModesEvent;

#[AsEventListener]
final class RegisterKanbanViewListener
{
    public function __invoke(RegisterViewModesEvent $event): void
    {
        $event->addViewMode('kanban', [
            'label' => 'LLL:EXT:my_ext/Resources/Private/Language/locallang.xlf:viewMode.kanban',
            'icon' => 'module-list',
            'description' => 'Kanban board view',
        ]);
    }
}

Event API

$event->addViewMode(string $id, array $config): void
$event->removeViewMode(string $id): void
$event->hasViewMode(string $id): bool
$event->modifyViewMode(string $id, array $config): void
$event->getViewModes(): array

13. Extending

Override Templates via TypoScript

TypoScript goes under the plugin namespace module.tx_recordsgridview (historical key from the extension’s early name). The extension key remains records_list_types.

module.tx_recordsgridview {
    view {
        templateRootPaths.100 = EXT:your_extension/Resources/Private/Templates/RecordsListTypes/
        partialRootPaths.100 = EXT:your_extension/Resources/Private/Partials/RecordsListTypes/
        layoutRootPaths.100 = EXT:your_extension/Resources/Private/Layouts/RecordsListTypes/
    }
}

Custom Record Actions

Listen to ModifyRecordListRecordActionsEvent (TYPO3 Core event):

use TYPO3\CMS\Backend\RecordList\Event\ModifyRecordListRecordActionsEvent;
use TYPO3\CMS\Backend\Template\Components\ActionGroup;
use TYPO3\CMS\Backend\Template\Components\ComponentFactory;
use TYPO3\CMS\Core\Attribute\AsEventListener;
use TYPO3\CMS\Core\Imaging\IconFactory;
use TYPO3\CMS\Core\Imaging\IconSize;

#[AsEventListener]
final class CustomRecordActionListener
{
    public function __construct(
        private readonly ComponentFactory $componentFactory,
        private readonly IconFactory $iconFactory,
    ) {}

    public function __invoke(ModifyRecordListRecordActionsEvent $event): void
    {
        $record = $event->getRecord();
        if ($record->getMainType() === 'tx_yourext_domain_model_item') {
            $event->setAction(
                action: $this->componentFactory
                    ->createLinkButton()
                    ->setHref('/my/custom/action?uid=' . $record->getUid())
                    ->setTitle('My Action')
                    ->setIcon($this->iconFactory->getIcon('actions-open', IconSize::SMALL)),
                actionName: 'myCustomAction',
                group: ActionGroup::secondary,
                after: 'edit'
            );
        }
    }
}

Custom Thumbnail Logic

class CustomThumbnailService extends ThumbnailService
{
    public function getThumbnailForRecord(string $table, array $record, string $imageField): ?FileInterface
    {
        if ($table === 'tx_yourext_domain_model_item') {
            return $this->getFromExternalSource($record);
        }
        return parent::getThumbnailForRecord($table, $record, $imageField);
    }
}

Register override in Services.yaml:

services:
  Webconsulting\RecordsListTypes\Service\ThumbnailService:
    class: YourVendor\YourExtension\Service\CustomThumbnailService

JavaScript Hooks

// Event prefix `recordsGridview:` matches the historical extension codename (same story as TypoScript `module.tx_recordsgridview`).
document.addEventListener('recordsGridview:viewModeChanged', (event) => {
    console.log('View mode changed to:', event.detail.mode);
});

14. Architecture

Services

ServicePurpose
RecordGridDataProviderFetches records with thumbnails, icons, workspace state
GridConfigurationServiceParses TSconfig for per-table settings
ThumbnailServiceResolves FAL references, generates thumbnail URLs
ViewModeResolverDetermines active view from request/preference/TSconfig
ViewTypeRegistryRegistry for built-in + custom view types
MiddlewareDiagnosticServiceDetects middleware interference with view rendering

ViewHelpers

ViewHelperPurpose
RecordActionsViewHelperRenders cached record actions (<gridview:recordActions>). Register namespace in Fluid: xmlns:gridview="http://typo3.org/ns/Webconsulting/RecordsListTypes/ViewHelpers" (or rely on the extension’s shipped templates).

CSS Architecture

base.css            ← Always loaded (heading, pagination, sorting)
├── grid-view.css   ← Grid-only: cards, drag-drop, field types
├── compact-view.css← Compact-only: table, sticky columns
├── teaser-view.css ← Teaser-only: teaser cards, badges
└── view-mode-toggle.css ← DocHeader toggle buttons

Custom view types automatically receive base.css.

JavaScript Modules

ModulePurpose
GridViewActions.jsDrag-drop, record actions, sorting, search, pagination, ARIA
view-switcher.jsView mode switching with AJAX persistence

AJAX Routes

RoutePurpose
records_list_types_set_view_modePersist user's view mode preference
records_list_types_get_view_modeRetrieve current view mode preference

15. Common Recipes

Grid as Default for Media Folders

[traverse(page, "doktype") == 254]
    mod.web_list.viewMode.default = grid
    mod.web_list.viewMode.allowed = list,grid
    mod.web_list.gridView.cols = 6
[END]

Disable Extension for Specific Pages

[traverse(page, "uid") == 123 || traverse(page, "pid") == 123]
    mod.web_list.viewMode.allowed = list
[END]

Force View for User Group

# User TSconfig — **`options.layout.records.forceView` is provided by EXT:records_list_types**, not Core TYPO3.
options.layout.records.forceView = grid

Photo Gallery (48 items, Grid template)

mod.web_list.viewMode.types.gallery {
    label = Photo Gallery
    icon = actions-image
    template = GridView
    columnsFromTCA = 0
    displayColumns = label
    itemsPerPage = 48
}

mod.web_list.gridView.table.sys_file_metadata {
    titleField = title
    imageField = file
    preview = 1
}

Companion Extension

Install typo3-records-list-examples for 6 ready-to-use view types: Timeline, Catalog, Address Book, Event List, Gallery, Dashboard.

16. File Structure

records_list_types/
├── Classes/
│   ├── Constants.php
│   ├── Controller/
│   │   ├── Ajax/ViewModeController.php        # AJAX preference persistence
│   │   └── RecordListController.php           # Main controller (XClass)
│   ├── Event/
│   │   └── RegisterViewModesEvent.php         # PSR-14: custom view registration
│   ├── EventListener/
│   │   ├── GridViewButtonBarListener.php      # Injects toggle buttons
│   │   ├── GridViewQueryListener.php          # Query modification bridge
│   │   └── GridViewRecordActionsListener.php  # Record action collection
│   ├── Pagination/
│   │   └── DatabasePaginator.php              # Paginator for pre-fetched records
│   ├── Service/
│   │   ├── GridConfigurationService.php       # TSconfig parsing
│   │   ├── MiddlewareDiagnosticService.php    # Middleware diagnostics
│   │   ├── RecordGridDataProvider.php         # Record fetching & enrichment
│   │   ├── ThumbnailService.php               # FAL image processing
│   │   ├── ViewModeResolver.php               # View mode determination
│   │   └── ViewTypeRegistry.php               # View type management
│   └── ViewHelpers/
│       └── RecordActionsViewHelper.php        # Record actions rendering
├── Configuration/
│   ├── Backend/AjaxRoutes.php
│   ├── Icons.php
│   ├── JavaScriptModules.php
│   ├── page.tsconfig
│   └── Services.yaml
├── Documentation/
├── Resources/
│   ├── Private/
│   │   ├── Language/ (en, de)
│   │   ├── Layouts/
│   │   ├── Partials/ (Card, CompactRow, Pagination, RecordActions, SortingDropdown, TeaserCard, ViewSwitcher)
│   │   └── Templates/ (CompactView, GenericView, GridView, TeaserView)
│   └── Public/
│       ├── Css/ (base, grid-view, compact-view, teaser-view, view-mode-toggle)
│       ├── Icons/
│       └── JavaScript/ (GridViewActions, view-switcher)
├── Tests/ (Unit, Functional, Architecture)
├── composer.json
├── ext_emconf.php
└── ext_localconf.php

17. Accessibility

  • Keyboard drag-and-drop: Space/Enter to grab, arrows to move, Space/Enter to drop, Escape to cancel
  • ARIA live regions: Announce drag state and position ("Position 3 of 12")
  • Semantic markup: interactive card grids should use the ARIA grid pattern: role="grid" on the container, role="row" on row wrappers, and role="gridcell" on cards. listbox / option is wrong here because options must not contain separate interactive controls such as drag handles and action buttons.
  • Focus management: Visible focus indicators, proper tab order

18. Dark Mode

All views support TYPO3 dark mode via CSS custom properties:

  • [data-color-scheme="dark"] attribute support
  • prefers-color-scheme: dark system preference
  • Design tokens for all colors, shadows, and borders

19. Security

  • SQL Injection Prevention: All queries use TYPO3's QueryBuilder with parameterized named parameters
  • CSRF Protection: AJAX endpoints use TYPO3's built-in token handling
  • Access Control: Full integration with TYPO3's backend user permissions and workspace restrictions
  • Input Validation: View mode, table names, UIDs, and sort parameters validated and sanitized
  • XSS Prevention: Fluid templates with proper escaping; no raw HTML output of user data

20. Known Limitations

  • Workspace support is experimental. Visual indicators work, but drag-and-drop within workspaces has limited testing.
  • Drag-and-drop accessibility: Keyboard-based drag-and-drop is implemented with ARIA, but screen reader testing (NVDA, JAWS, VoiceOver) has been limited. Standard List View is a more tested fallback.

Source: https://github.com/dirnbauer/webconsulting-skills

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.49%
按下载量换算103

Claude

30.7%
按下载量换算91

Cursor

17.87%
按下载量换算53

Gemini CLI

8.04%
按下载量换算24

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills