[TYPO3-UG Dutch] RealURL met tx_news
"HocomAdvies [ Wiechert Hooghwinkel
"HocomAdvies [ Wiechert Hooghwinkel
Mon Oct 26 13:30:35 CET 2015
Benjamin, bedankt het werkt. Alleen nadat ik ook deze TS in de setup heb opgenomen:
plugin.tx_news {
settings {
link {
skipControllerAndAction = 1
}
}
}
Wat doet dit stukje dan eigelijk?
> // Always hide action and controller parameters
> array(
> 'GETvar' => 'tx_news_pi1[action]',
> 'noMatch' => 'bypass'
> ),
> array(
> 'GETvar' => 'tx_news_pi1[controller]',
> ‘noMatch' => 'bypass'
Groet,
Wiechert
> Op 26 okt. 2015, om 12:43 heeft Benjamin Serfhos <serfhos at rsm.nl> het volgende geschreven:
>
> Hi Wiechert,
>
> De volgende RealURL configuratie is dan nodig om je functionaliteit te behalen:
>
> - Let op, dit is niet getest; -
>
> $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'] = array(
> '_DEFAULT' => array(
> 'init' => array(
> 'enableCHashCache' => true,
> 'appendMissingSlash' => 'ifNotFile,redirect',
> 'adminJumpToBackend' => true,
> 'enableUrlDecodeCache' => true,
> 'enableUrlEncodeCache' => true,
> 'emptyUrlReturnValue' => '/',
> 'respectSimulateStaticURLs' => true,
> ),
> 'pagePath' => array(
> 'type' => 'user',
> 'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
> 'spaceCharacter' => '-',
> 'languageGetVar' => 'L',
> 'rootpage_id' => '1',
> ),
> 'fileName' => array(
> 'defaultToHTMLsuffixOnPrev' => 0,
> 'acceptHTMLsuffix' => 1,
> 'index' => array(
> 'print' => array(
> 'keyValues' => array(
> 'type' => 98,
> ),
> ),
> ),
> ),
> 'fixedPostVars' => array(
> 'news-detail' => array(
> array(
> 'GETvar' => 'tx_news_pi1[news]',
> 'lookUpTable' => array(
> 'table' => 'tx_news_domain_model_news',
> 'id_field' => 'uid',
> 'alias_field' => 'title',
> 'addWhereClause' => ' AND NOT deleted',
> 'useUniqueCache' => 1,
> 'useUniqueCache_conf' => array(
> 'strtolower' => 1,
> 'spaceCharacter' => '-',
> ),
> 'languageGetVar' => 'L',
> 'languageExceptionUids' => '',
> 'languageField' => 'sys_language_uid',
> 'transOrigPointerField' => 'l10n_parent',
> 'autoUpdate' => 1,
> 'expireDays' => 180,
> ),
> // Always hide action and controller parameters
> array(
> 'GETvar' => 'tx_news_pi1[action]',
> 'noMatch' => 'bypass'
> ),
> array(
> 'GETvar' => 'tx_news_pi1[controller]',
> 'noMatch' => 'bypass'
> ),
> ),
> ),
> // page id => pre-configured post vars
> 9 => 'news-detail'
> ),
> 'postVarSets' => array(
> '_DEFAULT' => array(),
> ),
> ),
> );
>
>
> Met vriendelijke groet,
>
> Benjamin Serfhos
>
>
>
>
> On 26/10/15 11:50, "typo3-ug-dutch-bounces at lists.typo3.org<mailto:typo3-ug-dutch-bounces at lists.typo3.org> on behalf of "HocomAdvies [ 🌷 Wiechert Hooghwinkel ]"" <typo3-ug-dutch-bounces at lists.typo3.org<mailto:typo3-ug-dutch-bounces at lists.typo3.org> on behalf of info at hocom-advies.nl<mailto:info at hocom-advies.nl>> wrote:
>
> $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']=array (
> '_DEFAULT' =>
> array (
> 'init' =>
> array (
> 'enableCHashCache' => true,
> 'appendMissingSlash' => 'ifNotFile,redirect',
> 'adminJumpToBackend' => true,
> 'enableUrlDecodeCache' => true,
> 'enableUrlEncodeCache' => true,
> 'emptyUrlReturnValue' => '/',
> 'respectSimulateStaticURLs' => true,
> ),
> 'pagePath' =>
> array (
> 'type' => 'user',
> 'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
> 'spaceCharacter' => '-',
> 'languageGetVar' => 'L',
> 'rootpage_id' => '1',
> ),
> 'fileName' =>
> array (
> 'defaultToHTMLsuffixOnPrev' => 0,
> 'acceptHTMLsuffix' => 1,
> 'index' =>
> array (
> 'print' =>
> array (
> 'keyValues' =>
> array (
> 'type' => 98,
> ),
> ),
> ),
> ),
> 'postVarSets' =>
> array (
> '_DEFAULT' =>
> array (
> // EXT:news start
> 'news' => array(
> array(
> 'GETvar' => 'tx_news_pi1[action]',
> ),
> array(
> 'GETvar' => 'tx_news_pi1[controller]',
> ),
> array(
> 'GETvar' => 'tx_news_pi1[news]',
> 'lookUpTable' => array(
> 'table' => 'tx_news_domain_model_news',
> 'id_field' => 'uid',
> 'alias_field' => 'title',
> 'addWhereClause' => ' AND NOT deleted',
> 'useUniqueCache' => 1,
> 'useUniqueCache_conf' => array(
> 'strtolower' => 1,
> 'spaceCharacter' => '-',
> ),
> 'languageGetVar' => 'L',
> 'languageExceptionUids' => '',
> 'languageField' => 'sys_language_uid',
> 'transOrigPointerField' => 'l10n_parent',
> 'autoUpdate' => 1,
> 'expireDays' => 180,
> ),
> ),
> ),
> // EXT:news end
> ),
> ),
> ),
> );
> _______________________________________________
> TYPO3-UG-Dutch mailing list
> TYPO3-UG-Dutch at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-ug-dutch
More information about the TYPO3-UG-Dutch
mailing list