Direkt zum Inhalt der Seite springen

Dialysezentrum Mülheim | Viewhelper

GmfViewhelperTests

gmf:CheckIfFileExist

{gmf:CheckIfFileExist(filepath: 'favicon-16x16.png')}
Result: /www/htdocs/w01d6d51/2023-t3-11-dialysezentrum-muelheim/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="34" />
{gmf:GetAllAssetRefsFromContentElement(uid: '34')}
Result: Array
UID:15, Result: Eine Blume
In file.original the original file attributes are stored.

gmf:GetAllAssetRefsFromPageElement

<gmf:GetAllAssetRefsFromPageElement pageid="20" />
{gmf:GetAllAssetRefsFromPageElement(pageid: '20')}
Result: Array
UID:19, Result: Eine Blume

gmf:GetWidthFromColPos

<gmf:GetWidthFromColPos colPos="2055521" />
{gmf:GetWidthFromColPos(colPos: '2055521')}
Result: 555

gmf:GetResourcePathFromIdentifier

<f:variable name="myFile"><gmf:GetResourcePathFromIdentifier uid="15" /></f:variable>
{myFile.uid}
{myFile.identifier}
Result: Array
{myFile.id}: 15
{myFile.identifier}: /redakteur/bilder/image.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:Eine Blume
 <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:Eine Blume
<gmf:ImageEffect effect="charcoal=50 | flip" src="fileadmin/redakteur/bilder/test.jpg" height="250" />
Result: Blumen im Fokus
{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_image_953a9516a2_1098f6a997f4558f621a6be71439c16e.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_image_0a834abc6a_992c61636b2aafefa94b36ed9d15f937.png
<gmf:ImageEffectUri effect="charcoal=50 | flip" src="fileadmin/redakteur/bilder/test.jpg" height="251" />
Result: typo3temp/assets/images/csm_test_220a2b6ef9_e99c493a0e8c1d56a59a6a2612ab464c.png
{gmf:ImageEffectUri(effect: 'charcoal=50 | flip | blur=99', src: 'fileadmin/redakteur/bilder/test.png', height: 251)}
Result: typo3temp/assets/images/csm_test_1856104da8_95efe0c38daa2087d952b0c349207b13.png

gmf:ImageColorizeMask

<gmf:ImageColorizeMask file="fileadmin/redakteur/bilder/test.jpg" mask="EXT:gmfproject11/Resources/Public/ImageColorizeMask/mask-left.jpg" width="1980" height="1319" horizontal-align="left" />
Result: /typo3temp/assets/images/test-mask-left-1980x1319.png
alt
{gmf:ImageColorizeMask(file: 'fileadmin/redakteur/bilder/image.jpg', mask: 'EXT:gmfproject11/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
alt

gmf:ImageCombine

 <f:variable name="file1"> <gmf:ImageColorizeMask file="fileadmin/redakteur/bilder/test.jpg" mask="EXT:gmfproject11/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:gmfproject11/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
alt

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/gmfproject11/Resources/Public/Dist/

gmf:Ext

<gmf:Ext />
Result: /www/htdocs/w01d6d51/2023-t3-11-dialysezentrum-muelheim/web/typo3conf/ext/

gmf:Mod

<gmf:Mod />
Result: typo3conf/ext/gmfproject11/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}:
{prevNext.prev.pid}:
{prevNext.prev.title}:
{prevNext.prev.doktype}:

{prevNext.next.uid}:
{prevNext.next.pid}:
{prevNext.next.title}:
{prevNext.next.doktype}:

gmf:GetTyposcriptSetupVariable

{gmf:GetTyposcriptSetupVariable(path: 'plugin.tx_gmfproject11.websitemonitor')}
Result: aa_BB_dia

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}" title="{f:translate(id:'social-title-facebook', extensionName:'gmfproject11')}" aria-label="{f:translate(id:'social-aria-label-facebook', extensionName:'gmfproject11')}"> <span><gmf:SVGIcon file="{gmf:Dist()}svg-symbols.svg" hash="gmf-facebook" /></span> <span class="share-text">{f:translate(id:'social-facebook', extensionName:'gmfproject11')}</span> </gmf:Social><span class="visually-hidden"><br></span> 
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:gmfproject11/Resources/Public/Images/logo.svg" alt="alt" class="brand-logo" />
{gmf:SVG(file: 'EXT:gmfproject11/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