feat: blog on TYPO3 13 with EXT:news 14
News list, tag list and detail templates restored from a46918d; the pagination widget is gone in news 14, so the TYPO3 10 paginator markup now sits on the core sliding window pagination (pagination URLs change). German labels for news committed. Production needs the news upgrade wizards (the 5 plugin elements become the split news plugins). Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
799dc03c75
commit
44614a4a75
16 files changed
+1507
-2
No files matched your search
@@ -0,0 +1,91 @@
|
||||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
|
||||
xmlns:n="http://typo3.org/ns/GeorgRinger/News/ViewHelpers"
|
||||
data-namespace-typo3-fluid="true">
|
||||
|
||||
<f:layout name="Detail" />
|
||||
|
||||
<f:section name="content">
|
||||
<f:if condition="{newsItem}">
|
||||
<f:then>
|
||||
<n:format.nothing>
|
||||
<n:excludeDisplayedNews newsItem="{newsItem}" />
|
||||
<f:if condition="{newsItem.alternativeTitle}">
|
||||
<f:then>
|
||||
<n:titleTag>
|
||||
<f:format.htmlentitiesDecode>{newsItem.alternativeTitle}</f:format.htmlentitiesDecode>
|
||||
</n:titleTag>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<n:titleTag>
|
||||
<f:format.htmlentitiesDecode>{newsItem.title}</f:format.htmlentitiesDecode>
|
||||
</n:titleTag>
|
||||
</f:else>
|
||||
</f:if>
|
||||
<f:render partial="Detail/Opengraph" arguments="{newsItem: newsItem, settings:settings}" />
|
||||
</n:format.nothing>
|
||||
<div itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||
<h1 class="headline headline--primary headline--underlined" itemprop="headline">
|
||||
{newsItem.title}
|
||||
</h1>
|
||||
<p class="text-sm italic mb-4">
|
||||
<f:if condition="{newsItem.author}">{newsItem.author} am </f:if>
|
||||
<time itemprop="datePublished" datetime="{f:format.date(date:newsItem.datetime, format:'Y-m-d')}"><f:format.date format="{f:translate(key:'dateFormat')}">{newsItem.datetime}</f:format.date></time>
|
||||
<f:if condition="{newsItem.tags}"> in
|
||||
<f:for each="{newsItem.tags}" as="tag" iteration="iteration">
|
||||
<f:link.page title="{tag.title}" pageUid="{settings.tagListPageUid}" additionalParams="{tx_news_pi1:{overwriteDemand:{tags: tag}}}">
|
||||
{tag.title}
|
||||
</f:link.page>
|
||||
{f:if(condition: iteration.isLast, else: ', ')}
|
||||
</f:for>
|
||||
</f:if>
|
||||
</p>
|
||||
<f:if condition="{newsItem.teaser}">
|
||||
<p class="text-lg mb-4">
|
||||
<f:format.nl2br>{newsItem.teaser}</f:format.nl2br>
|
||||
</p>
|
||||
</f:if>
|
||||
<div data-rte-content>
|
||||
<n:renderMedia news="{newsItem}" imgClass="block w-full h-auto mb-4" videoClass="video-wrapper" audioClass="audio-wrapper">
|
||||
<f:render partial="Detail/MediaContainer" arguments="{media: newsItem.media, settings:settings, id: newsItem.uid}" />
|
||||
<f:format.html>{newsItem.bodytext}</f:format.html>
|
||||
<f:if condition="{newsItem.contentElements}">
|
||||
<div class="flex flex-col space-y-4">
|
||||
<f:cObject typoscriptObjectPath="lib.tx_news.contentElementRendering">{newsItem.contentElementIdList}</f:cObject>
|
||||
</div>
|
||||
</f:if>
|
||||
</n:renderMedia>
|
||||
</div>
|
||||
</div>
|
||||
<f:if condition="{newsItem.relatedFiles}">
|
||||
<h3 class="headline headline--underlined">
|
||||
Dateien
|
||||
</h3>
|
||||
<ul class="list-none p-0 mb-4">
|
||||
<f:for each="{newsItem.relatedFiles}" as="relatedFile">
|
||||
<li>
|
||||
<a href="{relatedFile.originalResource.publicUrl -> f:format.htmlspecialchars()}" target="_blank">
|
||||
{f:if(condition:relatedFile.originalResource.title, then:relatedFile.originalResource.title, else:relatedFile.originalResource.name)}, {relatedFile.originalResource.size -> f:format.bytes()}
|
||||
</a>
|
||||
</li>
|
||||
</f:for>
|
||||
</ul>
|
||||
</f:if>
|
||||
<f:if condition="{newsItem.allRelatedSorted}">
|
||||
<h3 class="headline headline--underlined mt-8">
|
||||
Ähnliche Beiträge
|
||||
</h3>
|
||||
<f:for each="{newsItem.allRelatedSorted}" as="newsItem" iteration="iterator">
|
||||
<f:render partial="List/Item"
|
||||
arguments="{newsItem: newsItem,settings:settings,iterator:iterator}" />
|
||||
</f:for>
|
||||
</f:if>
|
||||
<f:if condition="{settings.backPid}">
|
||||
<f:link.typolink parameter="{settings.backPid}" class="button bg-button button--small">
|
||||
<f:translate key="back-link" />
|
||||
</f:link.typolink>
|
||||
</f:if>
|
||||
</f:then>
|
||||
</f:if>
|
||||
</f:section>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,47 @@
|
||||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
|
||||
xmlns:n="http://typo3.org/ns/GeorgRinger/News/ViewHelpers"
|
||||
data-namespace-typo3-fluid="true">
|
||||
|
||||
<f:layout name="General" />
|
||||
|
||||
<f:section name="content">
|
||||
<f:if condition="{news}">
|
||||
<f:then>
|
||||
<f:if condition="{contentObjectData.header}">
|
||||
<f:if condition="{tags.0}">
|
||||
<f:then>
|
||||
<h1 class="headline headline--primary headline--underlined">
|
||||
Blog: {tags.0.title}
|
||||
</h1>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<h1 class="headline headline--primary headline--underlined">
|
||||
Blog
|
||||
</h1>
|
||||
</f:else>
|
||||
</f:if>
|
||||
</f:if>
|
||||
<f:if condition="{settings.hidePagination}">
|
||||
<f:then>
|
||||
<f:for each="{news}" as="newsItem" iteration="iterator">
|
||||
<f:render partial="List/Item"
|
||||
arguments="{newsItem: newsItem,settings:settings,iterator:iterator}" />
|
||||
</f:for>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<f:for each="{pagination.paginator.paginatedItems}" as="newsItem" iteration="iterator">
|
||||
<f:render partial="List/Item" arguments="{newsItem: newsItem,settings:settings,iterator:iterator}" />
|
||||
</f:for>
|
||||
<f:render partial="List/Pagination" arguments="{pagination: pagination.pagination, paginator: pagination.paginator, settings: settings}" />
|
||||
</f:else>
|
||||
</f:if>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<div class="no-news-found">
|
||||
<f:translate key="list_nonewsfound" />
|
||||
</div>
|
||||
</f:else>
|
||||
</f:if>
|
||||
</f:section>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,24 @@
|
||||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
|
||||
|
||||
<f:layout name="General" />
|
||||
|
||||
<f:section name="content">
|
||||
<f:if condition="{tags}">
|
||||
<h3 class="headline headline--underlined">Themen</h3>
|
||||
<ul>
|
||||
<f:for each="{tags}" as="tag">
|
||||
<li>
|
||||
<f:link.page title="{tag.title}" pageUid="{settings.listPid}" additionalParams="{tx_news_pi1:{overwriteDemand:{tags: tag}}}"
|
||||
class="flex items-center space-x-2 {f:if(condition: '{tag.uid} == {overwriteDemand.tags}', then: 'text-ep-primary-dark')}">
|
||||
<svg class="w-5 h-5">
|
||||
<use href="{f:uri.image(src: 'EXT:ep_theme/Resources/Public/images/icons_sprite.svg')}#icon-tag"></use>
|
||||
</svg>
|
||||
<span class="flex-1">{tag.title}</span>
|
||||
</f:link.page>
|
||||
</li>
|
||||
</f:for>
|
||||
</ul>
|
||||
</f:if>
|
||||
</f:section>
|
||||
|
||||
</html>
|
||||
Reference in new issue
Block a user