定制 smichaelsen/fluid-viewhelper-timespan 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

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

  1. Composer:

composer require smichaelsen/fluid-viewhelper-timespan

  1. Copy the file Resources/Private/Language/locallang.xlf to 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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-09-28