oliverthiele/ot-timeline 问题修复 & 功能扩展

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

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

oliverthiele/ot-timeline

Composer 安装命令:

composer require oliverthiele/ot-timeline

包简介

CE Timeline - Content element for displaying a vertical timeline.

README 文档

README

Adds a vertical timeline content element to TYPO3. Timeline items support a title, rich text, and up to two images each.

TYPO3 Packagist Version PHP License Changelog

Features

  • TYPO3 v13 and v14 compatible (Site Set ready)
  • Vertical or horizontal timeline layout (configurable via JavaScript)
  • Timeline items with title, rich text, and up to two images
  • IRRE-based item management in the backend
  • Timeline JavaScript from squarechip/timeline (vendored)

Requirements

Requirement Version
TYPO3 ^13.4 | ^14.3
PHP >=8.2

Installation

composer require oliverthiele/ot-timeline

After installation, activate the Site Set "OtTimeline" for your site in the TYPO3 backend.

Configuration

TypoScript

TypoScript is auto-included via the Site Set. For manual integration without Site Set:

@import 'EXT:ot_timeline/Configuration/TypoScript/setup.typoscript'

JavaScript Options

The timeline is initialised with a default vertical configuration. To customise the behaviour, override the template and adjust the timeline() call:

timeline(document.querySelectorAll('.timeline'), {
    verticalStartPosition: 'right',  // 'left' | 'right'
    visibleItems: 2,
    verticalTrigger: '150px',        // px or % from bottom of viewport
    mode: 'vertical'                 // 'vertical' | 'horizontal'
});

For a full list of options see the squarechip/timeline documentation.

Template Override

To customise the output, override the template in your sitepackage:

tt_content.ot_timeline.templateRootPaths.10 = EXT:your_sitepackage/Resources/Private/Templates/

Styles

The extension does not ship compiled CSS. Include the SCSS source from Resources/Private/Scss/Timeline.scss in your frontend build, or use the styles from the squarechip/timeline repository.

Usage

  1. Create a new Timeline content element in the TYPO3 backend.
  2. Add timeline items via the IRRE interface. Each item can have a title, rich text, and up to two images.

License

GPL-2.0-or-later — © 2024 Oliver Thiele

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2026-05-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固