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; ...@@ -26,6 +26,7 @@ namespace SGalinski\SgNews\ViewHelpers;
* This copyright notice MUST APPEAR in all copies of the script! * This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/ ***************************************************************/
use TYPO3\CMS\Core\Utility\VersionNumberUtility;
use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractConditionViewHelper; use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractConditionViewHelper;
/** /**
...@@ -37,9 +38,11 @@ class ExtendedIfViewHelper extends AbstractConditionViewHelper { ...@@ -37,9 +38,11 @@ class ExtendedIfViewHelper extends AbstractConditionViewHelper {
*/ */
public function initializeArguments() { public function initializeArguments() {
parent::initializeArguments(); parent::initializeArguments();
$this->registerArgument( if(VersionNumberUtility::convertVersionNumberToInteger(TYPO3_version) < 8000000) {
'condition', 'boolean', 'Condition expression conforming to Fluid boolean rules', FALSE, FALSE $this->registerArgument(
); 'condition', 'boolean', 'Condition expression conforming to Fluid boolean rules', FALSE, FALSE
);
}
$this->registerArgument( $this->registerArgument(
'or', 'boolean', 'Condition expression conforming to Fluid boolean rules', FALSE, FALSE 'or', 'boolean', 'Condition expression conforming to Fluid boolean rules', FALSE, FALSE
); );
......
...@@ -36,6 +36,16 @@ newsFeed { ...@@ -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 # news feed integration into the site
page.headerData { page.headerData {
273905123652 = TEXT 273905123652 = TEXT
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<f:alias map="{singleViewUri: '{f:uri.page(pageUid: \'{newsMetaData.news.uid}\')}'}"> <f:alias map="{singleViewUri: '{f:uri.page(pageUid: \'{newsMetaData.news.uid}\')}'}">
<a href="{singleViewUri}"> <a href="{singleViewUri}">
<f:if condition="{newsMetaData.teaserImageObject}"> <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> </f:if>
<div class="tx-sgnews-teaser-inner"> <div class="tx-sgnews-teaser-inner">
<div class="tx-sgnews-teaser-title"> <div class="tx-sgnews-teaser-title">
......
{namespace sg=SGalinski\SgNews\ViewHelpers} {namespace sg=SGalinski\SgNews\ViewHelpers}
<f:comment xmlns:f="http://www.w3.org/1999/html"> <f:comment>
<!-- <!--
Usage Example: Usage Example:
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
</f:for> </f:for>
</ul> </ul>
<sg:pageBrowser numberOfPages="{numberOfPages}" /> <f:format.raw><sg:pageBrowser numberOfPages="{numberOfPages}" /></f:format.raw>
</div> </div>
</section> </section>
</f:section> </f:section>
...@@ -70,5 +70,5 @@ ...@@ -70,5 +70,5 @@
</div> </div>
</div> </div>
<sg:pageBrowser numberOfPages="{numberOfPages}" /> <f:format.raw><sg:pageBrowser numberOfPages="{numberOfPages}" /></f:format.raw>
</f:section> </f:section>
...@@ -18,5 +18,5 @@ ...@@ -18,5 +18,5 @@
</ul> </ul>
</div> </div>
<sg:pageBrowser numberOfPages="{numberOfPages}" /> <f:format.raw><sg:pageBrowser numberOfPages="{numberOfPages}" /></f:format.raw>
</f:section> </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