Commit 39457b21 authored by Andreas Nedbal's avatar Andreas Nedbal
Browse files

Merge branch '14-allow-videos-as-media' into 'master'

Resolve "Allow videos as media"

Closes #14

See merge request t3o/typo3_roadmap!8
parents f81feff3 6815c07c
......@@ -129,52 +129,13 @@ return [
'defaultExtras' => 'richtext:rte_transform'
],
'images' => [
'exclude' => false,
'label' => 'LLL:EXT:typo3_roadmap/Resources/Private/Language/locallang_db.xml:tx_typo3roadmap_domain_model_feature.images',
'config' =>
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig(
'images',
[
'label' => 'Media',
'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('images', [
'appearance' => [
'createNewRelationLinkTitle' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference'
],
'foreign_types' => [
'0' => [
'showitem' => '
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
--palette--;;filePalette'
],
\TYPO3\CMS\Core\Resource\File::FILETYPE_TEXT => [
'showitem' => '
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
--palette--;;filePalette'
],
\TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => [
'showitem' => '
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
--palette--;;filePalette'
],
\TYPO3\CMS\Core\Resource\File::FILETYPE_AUDIO => [
'showitem' => '
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
--palette--;;filePalette'
],
\TYPO3\CMS\Core\Resource\File::FILETYPE_VIDEO => [
'showitem' => '
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
--palette--;;filePalette'
],
\TYPO3\CMS\Core\Resource\File::FILETYPE_APPLICATION => [
'showitem' => '
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
--palette--;;filePalette'
]
'createNewRelationLinkTitle' => 'Media'
],
'maxitems' => 10
],
$GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']
),
'overrideChildTca' => $GLOBALS['TCA']['tt_content']['columns']['assets']['config']['overrideChildTca']
], $GLOBALS['TYPO3_CONF_VARS']['SYS']['mediafile_ext'])
],
'link' => [
'exclude' => false,
......@@ -212,7 +173,7 @@ return [
['', '']
],
],
'onChange'=>'reload',
'onChange' => 'reload',
],
'typo3releaseminorversion' => [
'exclude' => false,
......
plugin.tx_typo3roadmap {
view {
templateRootPath = {$plugin.tx_typo3roadmap_roadmap.view.templateRootPath}
partialRootPath = {$plugin.tx_typo3roadmap_roadmap.view.partialRootPath}
layoutRootPath = {$plugin.tx_typo3roadmap_roadmap.view.layoutRootPath}
partialRootPaths {
0 = EXT:t3olayout/Resources/Private/Partials/
10 = {$plugin.tx_typo3roadmap_roadmap.view.partialRootPath}
}
}
persistence {
storagePid = {$plugin.tx_typo3roadmap_roadmap.persistence.storagePid}
......
<div class="container">
<div class="row">
<div class="col-8">
<h2 class="">{feature.header}</h2>
<div class="row">
<div class="col-md-6">
<f:if condition="{feature.typo3releaseminorversion.version}">
<p class="alert alert-info text-center">Introduced in version {feature.typo3releaseminorversion.version} <f:if condition="{settings.showFeatureArea}"><f:link.typolink parameter="{feature.featureArea.page}">Feature Area</f:link.typolink></f:if></p>
<p class="alert alert-info text-center">Introduced in version {feature.typo3releaseminorversion.version}
<f:if condition="{settings.showFeatureArea}">
<f:link.typolink parameter="{feature.featureArea.page}">Feature Area</f:link.typolink>
</f:if>
</p>
</f:if>
<f:format.html>{feature.description}</f:format.html>
<f:if condition="{feature.link}">
<p><f:link.typolink parameter="{feature.link}" class="btn btn-primary mr-3" target="_blank">Documentation</f:link.typolink></p>
<p>
<f:link.typolink parameter="{feature.link}" class="btn btn-primary mr-3" target="_blank">Documentation</f:link.typolink>
</p>
</f:if>
</div>
<div class="col-4">
<f:for each="{feature.images}" as="image">
<f:image image="{image}" width="400"/>
<div class="col-md-6 mb-4 mb-md-0">
<f:for each="{feature.images}" as="media" iteration="i">
<div class="media-item">
<f:switch expression="{media.originalResource.type}">
<f:case value="3">
<f:media class="audio-embed-item mb-2" file="{media}" width="{dimensions.width}" height="{dimensions.height}" alt="{media.alternative}" title="{media.title}" />
</f:case>
<f:case value="4">
<div class="embed-responsive embed-responsive-16by9 mb-2">
<f:media class="embed-responsive-item" file="{media}" alt="{media.alternative}" title="{media.title}" />
</div>
</f:case>
<f:defaultCase>
<div class="mb-2">
<f:variable name="breakpoints" value="{
0:{media:'max-width', size:375, maxWidth:375, cropVariant:'mobile'},
1:{media:'max-width', size:480, maxWidth:510, cropVariant:'mobile'},
2:{media:'max-width', size:767, maxWidth:209, cropVariant:'tablet'},
3:{media:'max-width', size:991, maxWidth:239, cropVariant:'tablet'},
4:{media:'max-width', size:1199, maxWidth:450, cropVariant:'default'},
5:{media:'min-width', size:1200, maxWidth:570, cropVariant:'default'}
}" />
<f:render partial="ContentElements/Media/Rendering/PictureSrcsetCols" section="ImageRender" arguments="{file: media, breakpoints: breakpoints}" />
</div>
</f:defaultCase>
</f:switch>
</div>
</f:for>
</div>
</div>
......
<div class="container">
<div class="row">
<div class="col-8">
<div class="{f:if(condition:'{featureArea.images}', then: 'col-md-8', else: 'col-12')}">
<h1 class="">{featureArea.title}</h1>
<f:format.html>{featureArea.description}</f:format.html>
<f:if condition="{settings.featurearea}==''">
<p><f:link.typolink parameter="{featureArea.page}" class="btn btn-primary mr-3">Features</f:link.typolink></p>
</f:if>
</div>
<div class="col-4">
<f:if condition="{featureArea.images}">
<div class="col-md-4">
<f:for each="{featureArea.images}" as="image">
<f:image image="{image}" width="400"/>
<f:image class="img-fluid mb-4" image="{image}" width="600"/>
</f:for>
</div>
</f:if>
</div>
</div>
\ No newline at end of file
......@@ -7,8 +7,17 @@
</f:if>
<f:if condition="{features}">
<f:then>
<f:for each="{features}" as="feature">
<f:for each="{features}" as="feature" iteration="i">
<f:if condition="{i.isLast}">
<f:then>
<f:render partial="Feature/ShowFeature.html" arguments="{_all}"/>
</f:then>
<f:else>
<div class="border-bottom mb-5 pb-5">
<f:render partial="Feature/ShowFeature.html" arguments="{_all}"/>
</div>
</f:else>
</f:if>
</f:for>
</f:then>
<f:else>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment