[TYPO3-UG Dutch] RealURL met tx_news
Benjamin Serfhos
serfhos at rsm.nl
Mon Oct 26 13:35:02 CET 2015
Hi Wiechert,
Dat laatste stukje controleert of de URL ook de parameters
tx_news_pi1[action] of tx_news_pi1[controller] bevat en zal deze omzeilen.
Theoretisch gezien zou die skipControllerAndAction dan ook niet nodig
zijn. Maar het belangrijkste is, je hebt het werkend ;-)
Groet,
Benjamin Serfhos
On 26/10/15 13:30, "typo3-ug-dutch-bounces at lists.typo3.org on behalf of
"HocomAdvies [ 🌷 Wiechert Hooghwinkel ]""
<typo3-ug-dutch-bounces at lists.typo3.org on behalf of info at hocom-advies.nl>
wrote:
>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 lis
>>ts.typo3.org> on behalf of "HocomAdvies [ 🌷 Wiechert Hooghwinkel ]""
>><typo3-ug-dutch-bounces at lists.typo3.org<mailto:typo3-ug-dutch-bounces at lis
>>ts.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
>
>_______________________________________________
>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