ds-site/Resources/Private/Templates/Backend/Page/MetaInfo.html

59 lines
2 KiB
HTML
Raw Normal View History

<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/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">
{f:uri.editRecord(
uid: recordUid,
table: 'pages',
columns: field
)}
</f:section>
</html>