0
votes

TYPO3 7.6.23 and Ext: news 6.1.1

When a single site being displayed WITH special content e.g. "Pictures" the image that is usually displayed next to the text is then being displayed at the very bottom under the e.g. "Pictures" Content Element. I could't find anything about that "problem" and wonder if nobody cares ~:-/!

Can anybody give me a hint or a link to solve that display problem?

2

2 Answers

1
votes

I found the culprit at last. You need the file "Detail.html" ext/news/Resources/Private/Templates/News/Detail.html Look for line 91 and following

<f:if condition="{newsItem.contentElements}">
    <!-- content elements -->
    <f:cObject typoscriptObjectPath="lib.tx_news.contentElementRendering">{newsItem.contentElementIdList}</f:cObject>
</f:if>
<f:render partial="Detail/MediaContainer" arguments="{media: newsItem.media, settings:settings}" />

<!-- main text -->
<div class="news-text-wrap" itemprop="articleBody">
    <f:format.html>{newsItem.bodytext}</f:format.html>
</div>
</n:renderMedia>

and change the order to

<f:render partial="Detail/MediaContainer" arguments="{media: newsItem.media, settings:settings}" />

<!-- main text -->
<div class="news-text-wrap" itemprop="articleBody">
    <f:format.html>{newsItem.bodytext}</f:format.html>
</div>

<f:if condition="{newsItem.contentElements}">
    <!-- content elements -->
    <f:cObject typoscriptObjectPath="lib.tx_news.contentElementRendering">{newsItem.contentElementIdList}</f:cObject>
</f:if>

</n:renderMedia>

I really do not understand why this is NOT default! Hope this might help somebody :-)

0
votes

You probably miss an evaluation of the field giving the orientation. Depending on your rendering: with typoscript (CSC) or fluid templates (FSC) you have to look for the rendering and of images and whether the oriantation is involved.