Zum Inhalt springen

tx_news und realurl funktioniert nur halb

Erstellt am 1. März 2017 · 1 Antwort · letzte Antwort am 26. April 2017

Tags: RealURL, tx_news, TYPO3 7, Frage

Matrix1987 ·

Hallo zusammen,

ich versuche derzeit die realurl funktion für tx_news umzusetzen. Jedoch funktioniert das nur halb.

Derzeit wird die URL wie folgt dargestellt:

http://www.domain.de/aktuelles/detailanzeige/detail/News/neuerscheinungen/?tx_news_pi1%5Bday%5D=7&tx_news_pi1%5Bmonth%5D=2&tx_news_pi1%5Byear%5D=2017&cHash=5ddead00c48144ec17c9d165b6f88b54

Ab und einschließlich /detail/ wird alles durch realurl codiert. Aber wieso kommt trotzdem noch die normale Ausgabe mit dem Tag, Monat etc?

Hat event. jemand eine Idee, welcher womögliche Zusatz in der realurl_conf oder im TS Setup fehlt? Es muss ja auch einen Grund haben, dass das Erstelldatum nicht als Pfad ausgegeben wird.

Im TS Setup steht folgendes:

plugin.tx_news {
  settings {
    link {
      skipControllerAndAction = 1
      hrDate = 1
      hrDate {
        day = j
        month = n
        year = Y
      }
    }
  }
}

In der realurl_conf steht:

	'fixedPostVars' => array(
                'newsDetailConfiguration' => array(
                        array(
							'GETvar' => 'tx_news_pi1[action]',
							'valueMap' => array(
									'detail' => '',
							),
							'noMatch' => 'bypass'
                        ),
                        array(
                                'GETvar' => 'tx_news_pi1[controller]',
                                'valueMap' => array(
                                        'News' => '',
                                ),
                                'noMatch' => 'bypass'
                        ),
                        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,
                                )
                        )
				),			
		
				'newsCategoryConfiguration' => array(
					array(
						'GETvar' => 'tx_news_pi1[overwriteDemand][categories]',
						'lookUpTable' => array(
							'table' => 'sys_category',
							'id_field' => 'uid',
							'alias_field' => 'title',
							'addWhereClause' => ' AND NOT deleted',
							'useUniqueCache' => 1,
							'useUniqueCache_conf' => array(
								'strtolower' => 1,
								'spaceCharacter' => '-'
							)
						)
					)
				),
		
				'newsTagConfiguration' => array(
					array(
						'GETvar' => 'tx_news_pi1[overwriteDemand][tags]',
						'lookUpTable' => array(
							'table' => 'tx_news_domain_model_tag',
							'id_field' => 'uid',
							'alias_field' => 'title',
							'addWhereClause' => ' AND NOT deleted',
							'useUniqueCache' => 1,
							'useUniqueCache_conf' => array(
								'strtolower' => 1,
								'spaceCharacter' => '-'
							)
						)
					)
				),
                '61' => 'newsDetailConfiguration', // ID meiner Detailseite
                //'701' => 'newsDetailConfiguration', // For additional detail pages, add their uid as well
               // '71' => 'newsTagConfiguration',
                //'72' => 'newsCategoryConfiguration',

        ),
		
		
        'postVarSets' => array(
			'_DEFAULT' => array(
				'controller' => array(
					array(
							'GETvar' => 'tx_news_pi1[action]',
							'noMatch' => 'bypass'
					),
					array(
							'GETvar' => 'tx_news_pi1[controller]',
							'noMatch' => 'bypass'
					)
				),

				'dateFilter' => array(
					array(
							'GETvar' => 'tx_news_pi1[overwriteDemand][year]',
					),
					array(
							'GETvar' => 'tx_news_pi1[overwriteDemand][month]',
					),
				),
				'page' => array(
					array(
							'GETvar' => 'tx_news_pi1[@widget_0][currentPage]',
					),
				),
				'seite' => array(
					array(
							'GETvar' => 'tx_news_pi1[@widget_0][currentPage]',
					),
                ),
				'kategorie' => array(
					array(
						'GETvar' => 'tx_news_pi1[overwriteDemand][categories]',
						'lookUpTable' => array(
							'table' => 'sys_category',
							'id_field' => 'uid',
							'alias_field' => 'title',
							'addWhereClause' => ' AND NOT deleted',
							'useUniqueCache' => 1,
							'useUniqueCache_conf' => array(
									'strtolower' => 1,
									'spaceCharacter' => '-'
							)
						)
					)
				),
				

			),
        ),