Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/smichaelsen/typo3-rwd-media
https://github.com/smichaelsen/typo3-rwd-media
Last synced: 30 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/smichaelsen/typo3-rwd-media
- Owner: smichaelsen
- Created: 2016-05-10T09:14:09.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-10-06T20:48:40.000Z (about 8 years ago)
- Last Synced: 2024-04-24T03:14:56.514Z (8 months ago)
- Language: HTML
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## RWD Media Partials
### For TYPO3 FluidThis extension offers Fluid partials that can be used in your templates when you want to render responsive images and/or videos.
### Usage
Enable the usage of the partials in your extension by adding the following to your extension's TypoScript:
````
plugin.tx_myext {
view {
partialRootPaths.10 = EXT:my_ext/Resources/Private/Partials/
partialRootPaths.1462872447 = EXT:rwd_media/Resources/Private/Partials/
}
}
````Then in any Fluid Template use it like this:
````
````
Take a look into the ResponsiveImage partial file for documentation on the supported arguments.
Spoiler: The `image` argument accepts a lot of different input types like `\TYPO3\CMS\Core\Resource\FileReference`, `\TYPO3\CMS\Extbase\Domain\Model\FileReference`, a sys_file uid or a file string like "2:/my/folder/image.png". Just give it whatever you have in your hands.
For Video files use:
````````
Or use the `ResponsiveMedia` partial for automatic detection of images or videos.