Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/smichaelsen/fluid-viewhelper-timespan

Timespan ViewHelper for TYPO3 Fluid
https://github.com/smichaelsen/fluid-viewhelper-timespan

Last synced: about 2 months ago
JSON representation

Timespan ViewHelper for TYPO3 Fluid

Awesome Lists containing this project

README

        

# TYPO3 Fluid Timespan ViewHelper

This package serves a ViewHelper for the TYPO3 templating engine Fluid.

## Installation

1. Composer:

`composer require smichaelsen/fluid-viewhelper-timespan`

2. 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

User {user.name} registered {user.crdate -> vhts:timeSpan(limitUnits:'2', extensionName: 'MyExtension')}.

Output is something like:

User Sebastian registered 3 months 7 days ago.