ds-site/Resources/Private/Partials/BlogPostHeader.html

56 lines
1.8 KiB
HTML
Raw Permalink Normal View History

2019-11-15 13:17:22 +01:00
<html xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers"
data-namespace-typo3-fluid="true">
<header>
<h1>{f:if(
condition: link,
then: '<a href="{link}">{title}</a>',
else: title
)}</h1>
2019-11-15 13:17:22 +01:00
<p>
2022-11-08 10:18:19 +01:00
Published: <time>{blogPost.lastUpdated -> f:format.date(format: 'Y-m-d')}</time><f:if condition="{blogPost.SYS_LASTCHANGED}">, Updated: <time>{blogPost.SYS_LASTCHANGED -> f:format.date(format: 'Y-m-d')}</time></f:if>
2019-11-15 13:17:22 +01:00
</p>
{f:render(section: 'TopicList', arguments: {
headline: 'Tested with TYPO3:',
topics: compatibleWith,
addLinks: addLinks
})}
{f:render(section: 'TopicList', arguments: {
headline: 'Topics:',
topics: topics,
addLinks: addLinks
})}
2019-11-15 13:17:22 +01:00
</header>
2020-01-08 21:03:54 +01:00
<f:section name="TopicList">
<f:if condition="{topics}">
2020-01-10 16:39:13 +01:00
<p>{headline} <f:for each="{topics}" as="topic" iteration="i"><f:spaceless>
<f:render section="Topic"
contentAs="content"
arguments="{
addLinks: addLinks,
topicUid: topic.data.uid
}"
>
{topic.data.title}
</f:render></f:spaceless>{f:if(condition: '!{i.isLast}', then: ',')}
</f:for></p>
</f:if>
2020-01-08 21:03:54 +01:00
</f:section>
2020-01-10 16:39:13 +01:00
<f:section name="Topic">
{f:if(
condition: addLinks,
then: "{f:render(section: 'LinkedTopic', arguments: _all)}",
else: content
)}
</f:section>
<f:section name="LinkedTopic">
<a href="{f:uri.page(pageUid: 11, additionalParams: {topic_uid: topicUid})}">{content -> f:spaceless()}</a>
2020-01-08 21:03:54 +01:00
</f:section>
2019-11-15 13:17:22 +01:00
</html>