qbus/qbtools
最新稳定版本:4.0.1
Composer 安装命令:
composer require qbus/qbtools
包简介
Basic tools for other qbus extensions
关键字:
README 文档
README
Introduction
This extension provides a set of ViewHelpers and Hooks that are used
to implement TYPO3 based websites by Qbus.
Some ViewHelpers (like qbtools:fetch or qbtools:fal) are not meant
to be used as preferred solution, but are rather available when a proper
implementation (using repository classes) is not possible – e.g. when
data needs to be retrieved from the database in a template of a generic
community extension.
Usage
$ composer require qbus/qbtools:^3.0
Quick Example
{namespace qbtools=Qbus\Qbtools\ViewHelpers}
<!-- Fetch (top) blog posts of some Extbase model and display using
a partial of some (external) extension. -->
<qbtools:fetch model="Vendor\\MyBlog\\Domain\\Model\\Post" match="{top: 1}" as="posts">
<f:for each="{posts}" as="post">
<qbtools:renderExternal partial="Blog/Teaser" extensionName="MyBlog" arguments="{post: post}"/>
</f:for>
</qbtools:fetch>
<!-- Render content from page with uid 340 -->
<qbtools:renderContent pid="340"/>
<!-- Render colPos 1 content from page with uid 340 -->
<qbtools:renderContent pid="340" colpos="1" />
<!-- Render content element with uid 230 -->
<qbtools:renderContent uid="230"/>
<!-- Quick an dirty call to a PHP function -->
<qbtools:call func="str_replace" params="{0: '_', 1: ' ', 2: 'foo_bar'}" as="result">
<!-- will print 'foo bar' -->
{result}
</qbtools:call>
统计信息
- 总下载量: 39
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2023-11-27