ds-site/Resources/Private/Templates/Backend/Page/MetaInfo.html
Daniel Siepmann b63ac9b93f Remove custom ViewHelper to edit record
As TYPO3 master already has necessary features.
2020-01-19 13:54:38 +01:00

59 lines
2.1 KiB
HTML

<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
xmlns:be="http://typo3.org/ns/TYPO3/CMS/Backend/ViewHelpers"
data-namespace-typo3-fluid="true">
<div class="t3-page-ce-wrapper t3-page-ce-empty">
<div class="t3-page-ce t3js-page-ce">
<div class="t3js-page-new-ce t3-page-ce-wrapper-new-ce">
<f:for each="{metaInfo}" as="info">
<a href="{f:render(section: 'Link', arguments: {recordUid: record.uid, field: info.field}) -> f:spaceless()}">
<h3>{info.label -> f:translate(id: 'backend.page.metainfo.{info.label}', extensionName: 'DsSite')}</h3>
<p>{f:render(section: 'Value-{info.type}', arguments: {value: info.value, type: info.type}) -> f:spaceless()}</p>
</a>
</f:for>
</div>
</div>
</div>
<f:section name="Value-string">
<f:if condition="{value}">
<f:then>
{value}
</f:then>
<f:else>
{f:translate(id: 'backend.page.metainfo.notSet', extensionName: 'DsSite')}
</f:else>
</f:if>
</f:section>
<f:section name="Value-date">
<f:if condition="{value} == 0">
<f:then>
{f:translate(id: 'backend.page.metainfo.notSet', extensionName: 'DsSite')}
</f:then>
<f:else>
{value -> f:format.date(format: 'd.m.Y')}
</f:else>
</f:if>
</f:section>
<f:section name="Value-files">
<f:if condition="{value}">
<f:then>
<f:for each="{value}" as="file">
<f:image image="{file}" maxWidth="500" maxHeight="500" />
</f:for>
</f:then>
<f:else>
{f:translate(id: 'backend.page.metainfo.notSet', extensionName: 'DsSite')}
</f:else>
</f:if>
</f:section>
<f:section name="Link">
{be:uri.editRecord(
uid: recordUid,
table: 'pages',
fields: field
)}
</f:section>
</html>