2017 © Pedro Peláez
 

typo3-cms-extension rwd-media

image

smichaelsen/rwd-media

  • Thursday, October 6, 2016
  • by smichaelsen
  • Repository
  • 1 Watchers
  • 0 Stars
  • 638 Installations
  • HTML
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

RWD Media Partials

For TYPO3 Fluid

This extension offers Fluid partials that can be used in your templates when you want to render responsive images and/or videos., (*1)

Usage

Enable the usage of the partials in your extension by adding the following to your extension's TypoScript:, (*2)

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:, (*3)

<f:render partial="Utility/ResponsiveImage" arguments="{image:myimage,width:'300'}"/>

Take a look into the ResponsiveImage partial file for documentation on the supported arguments., (*4)

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., (*5)

For Video files use:, (*6)

<f:render partial="Utility/ResponsiveVideo" arguments="{video:video}"/>

Or use the ResponsiveMedia partial for automatic detection of images or videos., (*7)

The Versions

06/10 2016

dev-typo3v8compat

dev-typo3v8compat

  Sources   Download

The Requires

 

26/09 2016

dev-master

9999999-dev

  Sources   Download

The Requires

 

26/09 2016

1.0.5

1.0.5.0

  Sources   Download

The Requires

 

26/09 2016

1.0.4

1.0.4.0

  Sources   Download

The Requires

 

20/06 2016

1.0.3

1.0.3.0

  Sources   Download

20/06 2016

1.0.2

1.0.2.0

  Sources   Download

26/05 2016

1.0.1

1.0.1.0

  Sources   Download

10/05 2016

1.0.0

1.0.0.0

  Sources   Download