Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/smichaelsen/fluid-viewhelper-timespan
- Owner: smichaelsen
- Created: 2015-09-28T12:02:22.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2024-10-29T09:39:00.000Z (2 months ago)
- Last Synced: 2024-11-16T06:12:39.410Z (about 2 months ago)
- Language: PHP
- Homepage:
- Size: 19.5 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.