DMKEBUSINESSGMBH/typo3-mksearch

tx_news Indexer: index internal URL and news type

hannesbochmann opened this issue · 1 comments

The internal URL for type internal page is not indexed in the moment. The news type is missing, too. The type is necessary so the links can be created dependent on that.

Here is a example for a fluid template how the links should be rendered:

<f:switch expression="{entry.record.news_type_i}">
	<f:case value="0">
	    <f:link.page pageUid="{filter.filterSettings.PIDnewsDetails}" additionalParams="{tx_news_pi1:{news : entry.record.uid}}">
		show more
	    </f:link.page>
	</f:case>
	<f:case value="1">
	    <f:link.typolink parameter="{entry.record.news_internal_url_s}">
		show more
	    </f:link.typolink>
	</f:case>
	<f:case value="2">
	    <f:link.external uri="{entry.record.news_external_url_s}">
		show more
	    </f:link.external>
	</f:case>
</f:switch>