Skip to content
Snippets Groups Projects
Commit c0b8087c authored by Paul Ilea's avatar Paul Ilea
Browse files

[TASK] typo3v8 compatibility updates

parent 0465f206
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,7 @@ namespace SGalinski\SgNews\ViewHelpers;
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
use TYPO3\CMS\Core\Utility\VersionNumberUtility;
use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractConditionViewHelper;
/**
......@@ -37,9 +38,11 @@ class ExtendedIfViewHelper extends AbstractConditionViewHelper {
*/
public function initializeArguments() {
parent::initializeArguments();
$this->registerArgument(
'condition', 'boolean', 'Condition expression conforming to Fluid boolean rules', FALSE, FALSE
);
if(VersionNumberUtility::convertVersionNumberToInteger(TYPO3_version) < 8000000) {
$this->registerArgument(
'condition', 'boolean', 'Condition expression conforming to Fluid boolean rules', FALSE, FALSE
);
}
$this->registerArgument(
'or', 'boolean', 'Condition expression conforming to Fluid boolean rules', FALSE, FALSE
);
......
......@@ -36,6 +36,16 @@ newsFeed {
}
}
[compatVersion = 7.6.0]
newsFeed.config.additionalHeaders >
newsFeed.config.additionalHeaders {
10 {
header = Content-type:text/xml
replace = 1
}
}
[global]
# news feed integration into the site
page.headerData {
273905123652 = TEXT
......
......@@ -22,7 +22,7 @@
<f:alias map="{singleViewUri: '{f:uri.page(pageUid: \'{newsMetaData.news.uid}\')}'}">
<a href="{singleViewUri}">
<f:if condition="{newsMetaData.teaserImageObject}">
<div class="tx-sgnews-teaser-image tx-sgnews-teaser-image-stretched" style="background-image: url({f:uri.image(image: '{newsMetaData.teaserImageObject}')});"></div>
<div class="tx-sgnews-teaser-image tx-sgnews-teaser-image-stretched" style="background-image: url({f:uri.image(image: newsMetaData.teaserImageObject)});"></div>
</f:if>
<div class="tx-sgnews-teaser-inner">
<div class="tx-sgnews-teaser-title">
......
{namespace sg=SGalinski\SgNews\ViewHelpers}
<f:comment xmlns:f="http://www.w3.org/1999/html">
<f:comment>
<!--
Usage Example:
......
......@@ -26,7 +26,7 @@
</f:for>
</ul>
<sg:pageBrowser numberOfPages="{numberOfPages}" />
<f:format.raw><sg:pageBrowser numberOfPages="{numberOfPages}" /></f:format.raw>
</div>
</section>
</f:section>
......@@ -70,5 +70,5 @@
</div>
</div>
<sg:pageBrowser numberOfPages="{numberOfPages}" />
<f:format.raw><sg:pageBrowser numberOfPages="{numberOfPages}" /></f:format.raw>
</f:section>
......@@ -18,5 +18,5 @@
</ul>
</div>
<sg:pageBrowser numberOfPages="{numberOfPages}" />
<f:format.raw><sg:pageBrowser numberOfPages="{numberOfPages}" /></f:format.raw>
</f:section>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment