Configuration¶
TypoScript Constants¶
Properties of plugin.media2click. Use the Constant Editor to change these settings:
enable¶
- Property:
enable
- Data type:
- Description:
Enable the extension's functionality
- Default:
0
enablePermanently¶
- Property:
enablePermanently
- Datatype:
- Description:
Generally allow or disallow the permanent activation of accordingly configured target hosts.
- Default:
0
showTitle¶
- Property:
showTitle
- Data type:
- Description:
Enable display of the video's title as the palceholder's title
- Default:
1
showPreviewImage¶
cookieLifetime¶
- Property:
cookieLifetime
- Data type:
int+
- Description:
Cookie lifetime in days. Set to 0 to limit the cookie to the session.
- Default:
7
templateRootPath¶
- Property:
templateRootPath
- Data type:
- Description:
Path to your Fluid templates
privacyPid¶
- Property:
privacyPid
- Data type:
- Description:
Page id of your privacy statement page
- Default:
0
TypoScript Setup¶
All configuration is forwarded to the renderer classes via the settings of the corresponding FLUIDTEMPLATE and the additionalConfig attribute of the Fluid media viewhelper. Therefore all settings are not interpreted as TypoScript, but just used as is. It's not possible to use additional TypoScript to dynamically change these attributes.
For FluidStyledContent content elements, everything has to be set up in lib.contentElement.settings.media.additionalConfig.
For the News extension, use plugin.tx_news.settings.detail.media.video.additionalConfig.
As stated above, there is no interpreting of TypoScript inside a FLUIDTEMPLATE's settings. So you can not use the reference operator '=<' to reuse the settings of lib.contentElement in another FLUIDTEMPLATE, but have to use the copy operator '<'.
These parameters are available:
enable2click¶
- Property:
enable2click
- Data type:
- Description:
Enable the extension's functionality. Set via Constant Editor.
- Default:
0
placeholderContent¶
- Property:
placeholderContent
- Data type:
array of keys
- Description:
Parent property to all settings regarding the content of the placeholder
- Properties:
.showTitle:
booleanIf enabled, the Fluid media tag's title attribute is shown as the palceholder's title. Set via Constant Editor.
.showPreviewImage:
booleanShow preview image if available. Set via Constant editor.
.previewMaxWidth:
integerMaximum width of preview image. Set via Constant Editor.
.previewMaxHeight:
integerMaximum height of preview image. Set via Constant Editor.
.cObject:
cObjectThis cObject is used for rendering the placeholder. If this cObject is a FLUIDTEMPLATE, some useful values are passed to the fluid template as settings:
.settings:
array of keysSettings for the FLUIDTEMPLATE cObject. You can add your own properties according to the needs of your custom templates.
- Default Properties:
.videoProvider:
stringProvider of the video, i.e. "YouTube" or "Vimeo". Usefull to adapt the placeholder content, i.e. link to the proper privacy statement.
.showTitle:
booleansee above
.title:
stringThe title of the video
.width:
integerThe calculated width of the video iframe
.height:
integerThe calculated height of the video iframe
.previewImage:
stringPath to the preview image relative to the web root
.enablePermanently:
booleanShow the button for permanent activation if configured for this host.
.privacyPid:
integerTarget page for the "More Info" link. Set via Constant Editor.