trueprogramming/frontendrendering 问题修复 & 功能扩展

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

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

trueprogramming/frontendrendering

Composer 安装命令:

composer require trueprogramming/frontendrendering

包简介

Provides basic typoscript configuration for templating

README 文档

README

Author: Michael Semle
E-Mail: git@mikeproduction.de
repo:   https://github.com/true-programming/frontendrendering

This extension provides basic typoscript configuration for rendering content or pages with fluid.

Features

  • Improved lib.contentElement object
  • Lib to render content of a specific colPos
  • Lib to render content of defined pages and colPos

Usage

Include files

To use the configurations, just import them separately from the configuration folder or import the setup.typoscript file.

@import 'EXT:frontendrendering/Configuration/TypoScript/Lib/lib.contentElement.typoscript'
@import 'EXT:frontendrendering/Configuration/TypoScript/Lib/lib.fluidPage.typoscript'
@import 'EXT:frontendrendering/Configuration/TypoScript/Lib/lib.renderContent.typoscript'
@import 'EXT:frontendrendering/Configuration/TypoScript/Lib/lib.renderContentFromPid.typoscript'

OR

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

Usage for PAGE object

The lib sets the template name depending on the backend layout without the prefixed pagets__. To activate a custom config this could look like this:

page = PAGE
page {
    10 = CASE
    10 {
        key.data = pagelayout
        default =< lib.fluidPage
        pagets__newspage =< lib.fluidPage--news
    }
}

Usage for content elements

The lib.contentElement is referenced to the tt_content.default already in core, so we only change some more stuff. The template name gets set to the value of the CType field.
The lib lib.renderContent provides a cObject to render content of a specific colPos with a slide option upwards the page tree.

<f:cObject data="{colPos: 1}" typoscriptObjectPath="lib.renderContent"/>
<f:cObject data="{colPos: 1, slide: 1}" typoscriptObjectPath="lib.renderContent"/>

To render content from a specific page and colPos the lib.renderContentFromPid is the perfect fit.

<f:cObject data="{pidInList: 1, colPos: 1}" typoscriptObjectPath="lib.renderContentFromPid"/>
<f:cObject data="{pidInList: '1,2,3', colPos: 1, slide: 1}" typoscriptObjectPath="lib.renderContentFromPid"/>

How to install this extension?

You can set this up via composer (composer req trueprogramming/frontendrendering).

Requirements

  • TYPO3 v11 or v12.

License

The extension is licensed under GPL v2+, same as the TYPO3 Core.

For details see the LICENSE file in this repository.

trueprogramming/frontendrendering 适用场景与选型建议

trueprogramming/frontendrendering 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.35k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2023 年 01 月 05 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「configuration」 「project」 「frontend」 「TYPO3 CMS」 「TypoScript」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 trueprogramming/frontendrendering 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 trueprogramming/frontendrendering 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

  • 总下载量: 1.35k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 10
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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