Do not render list of typo3 or topics if not available in blog post
header
This commit is contained in:
parent
3cbe62319e
commit
6cd31a00a3
1 changed files with 28 additions and 23 deletions
|
@ -7,25 +7,28 @@
|
||||||
then: '<a href="{link}">{title}</a>',
|
then: '<a href="{link}">{title}</a>',
|
||||||
else: title
|
else: title
|
||||||
)}</h1>
|
)}</h1>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Published: <time>{blogPost.lastUpdated -> f:format.date(format: 'Y-m-d')}</time>,
|
Published: <time>{blogPost.lastUpdated -> f:format.date(format: 'Y-m-d')}</time>,
|
||||||
Updated: <time>{blogPost.SYS_LASTCHANGED -> f:format.date(format: 'Y-m-d')}</time>
|
Updated: <time>{blogPost.SYS_LASTCHANGED -> f:format.date(format: 'Y-m-d')}</time>
|
||||||
</p>
|
</p>
|
||||||
<p>Tested with TYPO3:
|
|
||||||
{f:render(section: 'TopicList', arguments: {
|
{f:render(section: 'TopicList', arguments: {
|
||||||
|
headline: 'Tested with TYPO3:',
|
||||||
topics: compatibleWith,
|
topics: compatibleWith,
|
||||||
addLinks: addLinks
|
addLinks: addLinks
|
||||||
})}
|
})}
|
||||||
</p>
|
|
||||||
<p>Topics:
|
|
||||||
{f:render(section: 'TopicList', arguments: {
|
{f:render(section: 'TopicList', arguments: {
|
||||||
|
headline: 'Topics:',
|
||||||
topics: topics,
|
topics: topics,
|
||||||
addLinks: addLinks
|
addLinks: addLinks
|
||||||
})}
|
})}
|
||||||
</p>
|
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<f:section name="TopicList">
|
<f:section name="TopicList">
|
||||||
|
<f:if condition="{topics}">
|
||||||
|
<p>{headline}
|
||||||
<f:for each="{topics}" as="topic" iteration="i">
|
<f:for each="{topics}" as="topic" iteration="i">
|
||||||
<f:render section="TopicLink"
|
<f:render section="TopicLink"
|
||||||
contentAs="content"
|
contentAs="content"
|
||||||
|
@ -37,6 +40,8 @@
|
||||||
{topic.data.title}{f:if(condition: '!{i.isLast}', then: ',')}
|
{topic.data.title}{f:if(condition: '!{i.isLast}', then: ',')}
|
||||||
</f:render>
|
</f:render>
|
||||||
</f:for>
|
</f:for>
|
||||||
|
</p>
|
||||||
|
</f:if>
|
||||||
</f:section>
|
</f:section>
|
||||||
|
|
||||||
<f:section name="TopicLink">
|
<f:section name="TopicLink">
|
||||||
|
|
Loading…
Reference in a new issue