smichaelsen/fluid-viewhelper-timespan
最新稳定版本:2.0.0
Composer 安装命令:
composer require smichaelsen/fluid-viewhelper-timespan
包简介
TimeSpanViewHelper for Fluid
README 文档
README
This package serves a ViewHelper for the TYPO3 templating engine Fluid.
Installation
- Composer:
composer require smichaelsen/fluid-viewhelper-timespan
- Copy the file
Resources/Private/Language/locallang.xlfto your TYPO3 extension (or merge the contents if you already have a locallang file) and adjust/translate the labels.
Usage example
<html data-namespace-typo3-fluid="true" xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers" xmlns:vhts="http://typo3.org/ns/Smichaelsen/FluidViewHelperTimespan/ViewHelpers">
User {user.name} registered {user.crdate -> vhts:timeSpan(limitUnits:'2', extensionName: 'MyExtension')}.
</html>
Output is something like:
User Sebastian registered 3 months 7 days ago.
统计信息
- 总下载量: 49.44k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2015-09-28