GmfViewhelperTests
gmf:CheckIfFileExist
{gmf:CheckIfFileExist(filepath: 'favicon-16x16.png')}Result: /www/htdocs/w00725ff/p10.gmf.design/web/favicon-16x16.png
{gmf:CheckIfFileExist(filepath: 'favicon-not-found.png')}Result:
gmf:CheckStringContains
<gmf:CheckStringContains haystack="system/file.jpg" needle=".jpg" />Result: 1
<gmf:CheckStringContains haystack="system/file.jpg" needle=".jpeg" />Result:
gmf:GetAllAssetRefsFromContentElement
<gmf:GetAllAssetRefsFromContentElement uid="53" />
{gmf:GetAllAssetRefsFromContentElement(uid: '53')}Result: Array
UID:43, Result:
gmf:GetAllAssetRefsFromPageElement
<gmf:GetAllAssetRefsFromPageElement pageid="27" />
{gmf:GetAllAssetRefsFromPageElement(pageid: '27')}Result: Array
UID:128, Result:
gmf:GetWidthFromColPos
<gmf:GetWidthFromColPos colPos="2055521" />
{gmf:GetWidthFromColPos(colPos: '2055521')}Result: 555
gmf:GetResourcePathFromIdentifier
<f:variable name="myFile"><gmf:GetResourcePathFromIdentifier uid="1" /></f:variable>
{myFile.uid}
{myFile.identifier}Result: Array
{myFile.id}: 1
{myFile.identifier}: /typo3conf/ext/gmfproject10/Resources/Public/Images/BackendLayouts/Default.jpg
gmf:ImageEffect
<f:for each="{gmf:GetAllAssetRefsFromPageElement(pageid: '27')}" as="uid"> Result: <gmf:ImageEffect effect="gamma=3.0 | swirl=50 | gray" src="{uid}" treatIdAsReference="1" height="250" cropVariant="mobile" /> </f:for>Result:
<f:for each="{gmf:GetAllAssetRefsFromPageElement(pageid: '27')}" as="uid"> Result: {gmf:ImageEffect(effect: 'gamma=3.0 | swirl=50 | gray', src: uid, treatIdAsReference: 1, height: 200)} </f:for>Result:
<gmf:ImageEffect effect="charcoal=50 | flip" src="/fileadmin/redakteur/bilder/test.jpg" height="250" />Result:
{gmf:ImageEffect(effect: 'charcoal=50 | flip | blur=99', src: 'fileadmin/redakteur/bilder/test.png', height: 250)}Result:
gmf:ImageEffectUri
<f:for each="{gmf:GetAllAssetRefsFromPageElement(pageid: '27')}" as="uid"> Result: <gmf:ImageEffectUri effect="gamma=3.0 | swirl=50 | gray" src="{uid}" treatIdAsReference="1" height="251" cropVariant="mobile" /> </f:for>Result:typo3temp/assets/images/csm_test_5dce792637_6a42a1b056.png
<f:for each="{gmf:GetAllAssetRefsFromPageElement(pageid: '27')}" as="uid"> Result: {gmf:ImageEffectUri(effect: 'gamma=3.0 | swirl=50 | gray', src: uid, treatIdAsReference: 1, height: 201)} </f:for>Result:typo3temp/assets/images/csm_test_c70cecd005_b9a5012489.png
<gmf:ImageEffectUri effect="charcoal=50 | flip" src="/fileadmin/redakteur/bilder/test.jpg" height="251" />Result: typo3temp/assets/images/csm_test_cdc5e1f08e_6cf4838efa.png
{gmf:ImageEffectUri(effect: 'charcoal=50 | flip | blur=99', src: 'fileadmin/redakteur/bilder/test.png', height: 251)}Result: typo3temp/assets/images/csm_test_e47408cf17_3ef93f4d8d.png
gmf:ImageColorizeMask
<gmf:ImageColorizeMask file="/fileadmin/redakteur/bilder/test.jpg" mask="EXT:gmfproject10/Resources/Public/ImageColorizeMask/mask-left.jpg" width="1980" height="1319" horizontal-align="left" />Result: /typo3temp/assets/images/test-mask-left-1980x1319.png
{gmf:ImageColorizeMask(file: 'fileadmin/redakteur/bilder/image.jpg', mask: 'EXT:gmfproject10/Resources/Public/ImageColorizeMask/mask-right.jpg', width: 1980, height: 1319, x-offset: 100, y-offset: 0, opacity: 0.5, colorize: '#006600', horizontal-align: 'right')}Result: /typo3temp/assets/images/image-006600-mask-right-1980x1319.png
gmf:ImageCombine
<f:variable name="file1"> <gmf:ImageColorizeMask file="/fileadmin/redakteur/bilder/test.jpg" mask="EXT:gmfproject10/Resources/Public/ImageColorizeMask/mask-left.jpg" width="1980" height="1319" colorize="#F40000" opacity="0.5" x-offset="0" y-offset="0" horizontal-align="left" /> </f:variable>
<f:variable name="file2"> {gmf:ImageColorizeMask(file: 'fileadmin/redakteur/bilder/image.jpg', mask: 'EXT:gmfproject10/Resources/Public/ImageColorizeMask/mask-right.jpg', width: 1980, height: 1319, colorize: '', opacity: 0, x-offset: 0, y-offset: 0, horizontal-align: 'right')} </f:variable>
<gmf:ImageCombine files="{0: file1, 1: file2}" width="1980" height="1319" />
<img src="{gmf:ImageCombine(files: {0: file1, 1: file2}, width: 1980, height: 1319)}" class="img-fluid" alt="alt" title="title" />Result: /typo3temp/assets/images/test-f40000-mask-left-1980x1319-image-mask-right-1980x1319.png
gmf:SplitStringAssign
<gmf:SplitStringAssign name="myArray" delimiter="/">here/we/go</gmf:SplitStringAssign>Result:
0. here
1. we
2. go
gmf:StringReplace
<gmf:StringReplace search="10" replace="5">I am 10 years old.</gmf:StringReplace>Result: I am 5 years old.
{gmf:StringReplace(search: 'years', replace: 'days', content: 'I am 10 years old.')}Result: I am 10 days old.
gmf:Dist
<gmf:Dist />Result: typo3conf/ext/gmfproject10/Resources/Public/Dist/
gmf:Ext
<gmf:Ext />Result: /www/htdocs/w00725ff/p10.gmf.design/web/typo3conf/ext/
gmf:Mod
<gmf:Mod />Result: typo3conf/ext/gmfproject10/System/Modules/
gmf:GetPrevNextPage
<gmf:GetPrevNextPage uid="13" startpointUid="2" />
<f:variable name="prevNext" value="{gmf:GetPrevNextPage(uid: '13', startpointUid: '2')}" />Result:
{prevNext.prev.uid}: 2
{prevNext.prev.pid}: 1
{prevNext.prev.title}: Unterseiten
{prevNext.prev.doktype}: 1
{prevNext.next.uid}: 12
{prevNext.next.pid}: 2
{prevNext.next.title}: Level 2.1
{prevNext.next.doktype}: 1
gmf:GetTyposcriptSetupVariable
{gmf:GetTyposcriptSetupVariable(path: 'plugin.tx_gmfproject10.websitemonitor')}Result: gmf-insert-new-key
gmf:Schemaorg
<gmf:Schemaorg />Result: Script Tag application/ld+json
gmf:Social
<f:variable name="shareUrl">{f:uri.page(pageUid: data.uid, absolute: 'true', additionalParams: '{tx_news_pi1: {controller: \'News\',action: \'detail\', news:newsItemUid}}')}</f:variable>
<gmf:Social type="facebook" overrideshareurl="{shareUrl}" />Result:
gmf:SVGIcon
<gmf:SVGIcon file="{gmf:Dist()}svg-symbols.svg" hash="gmf-arrow-up" />
{gmf:SVGIcon(file: '{gmf:Dist()}svg-symbols.svg', hash: 'arrow-up')}Result:
gmf:SVG
<gmf:SVG file="EXT:gmfproject10/Resources/Public/Images/logo.svg" alt="alt" class="brand-logo" />
{gmf:SVG(file: 'EXT:gmfproject10/Resources/Public/Images/logo.svg', alt: 'alt', class: 'brand-logo')}Result:
gmf:SendEmail
<gmf:SendEmail from="webmaster@gmf-design.de" to="wartung@gmf-design.de" subject="Hello Test" body="This is a test." />Result: Email