[TYPO3-UG Oesterreich] probleme mit slashes in URL (tt_news, facebook, realurl)
Andreas Semerad
a.semerad at dielogomaten.at
Sat Jan 5 18:43:41 CET 2013
Hallo Georg!
Danke für deine Antwort.
Anbei die config. Ich hoffe, sie nützt, da sie doch sehr speziell ist.
URL-Probleme gibt es noch mit der List-Ansicht, die newscalendar
abbildet. Der Link wird so erzeugt...
http://www.kulturredaktion.at/news-kulturtipps/news-detail/event/schmalfilm-top-kino/browse/0.html
anstatt...
http://www.kulturredaktion.at/news-kulturtipps/news-detail/event/schmalfilm-top-kino.html
/********* urltoolconf_realurl.php ***********/
$RootPID = array(
'domain.xy' => '157',
'www.kulturredaktion.at' => '257'
);
$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array (
'_DEFAULT' => array (
'init' => array (
'adminJumpToBackend' => 1,
'useCHashCache' => 0,
'enableCHashCache' => 1,
'respectSimulateStaticURLs' => 0,
'appendMissingSlash' => 'ifNotFile,redirect',
'postVarSet_failureMode' => 'redirect_goodUpperDir',
'emptyUrlEncodeCache' => '/',
'enableUrlDecodeCache' => 1,
'enableUrlEncodeCache' => 1,
),
'redirects' => array (),
'preVars' => array (
array (
'GETvar' => 'no_cache',
'valueMap' => array (
'nc' => 0,
),
'noMatch' => 'bypass'
),
array (
'GETvar' => 'L',
'valueMap' => array (
'de' => 0,
'en' => 1,
),
'noMatch' => 'bypass',
),
array (
'GETvar' => 'lang',
'valueMap' => array (
'de' => 'de',
'en' => 'en',
),
'noMatch' => 'bypass',
),
),
'pagePath' => array (
'type' => 'user',
'userFunc' =>
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '-',
'languageGetVar' => 'L',
'expireDays' => 1095,
'rootpage_id' => $RootPID[$_SERVER['HTTP_HOST']],
// 'excludePageIds' => IDs für Ausschluss - mehrere Seiten:
'1,2,3',
'segTitleFieldList' => 'tx_realurl_pathsegment,alias,title',
'firstHitPathCache' => 1,
),
'fixedPostVars' => array (
'news' => array(
array(
'GETvar' => 'tx_ttnews[pointer]',
'valueMap' => array(),
'noMatch' => 'bypass',
),
array(
'GETvar' => 'tx_ttnews[tt_news]',
'lookUpTable' => array(
'table' => 'tt_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' => 'l18n_parent',
'expireDays' => 7,
),
),
),
),
'postVarSets' => array (
'_DEFAULT' => array (
'date' => array(
array('GETvar' => 'tx_ttnews[year]' , ),
array('GETvar' => 'tx_ttnews[month]' , ),
array('GETvar' => 'tx_ttnews[day]' , ),
array(
'GETvar' => 'tx_ttnews[startingPoint]',
'valueMap' => array(
'info' => '10',
),
'noMatch' => 'bypass'
),
array(
'GETvar' => 'tx_ttnews[backPid]',
'valueMap' => array(
'info' => '10',
),
'noMatch' => 'bypass'
),
array(
'GETvar' => 'tx_ttnews[mode]',
'noMatch' => 'bypass'
),
array(
'GETvar' => 'no_cache',
'valueMap' => array(
'no' => '1',
),
'noMatch' => 'bypass',
),
),
'event' => array(
array(
'GETvar' => 'tx_ttnews[tt_news]',
'lookUpTable' => array(
'table' => 'tt_news',
'id_field' => 'uid',
//'alias_field' => 'title',
'alias_field' => 'tx_lonewsseo_alias',
'addWhereClause' => ' AND NOT deleted',
'useUniqueCache' => 1,
'useUniqueCache_conf' => array(
'strtolower' => 1,
'spaceCharacter' => '-',
),
),
),
),
'archive' => array (
array (
'GETvar' => 'tx_ttnews[year]',
),
array (
'GETvar' => 'tx_ttnews[month]',
'valueMap' => array (
'january' => '01',
'february' => '02',
'march' => '03',
'april' => '04',
'may' => '05',
'june' => '06',
'july' => '07',
'august' => '08',
'september' => '09',
'october' => '10',
'november' => '11',
'december' => '12',
),
),
array(
'GETvar' => 'tx_ttnews[day]',
'noMatch' => 'bypass',
),
array(
'GETvar' => 'tx_ttnews[pS]',
'noMatch' => 'bypass',
),
array(
'GETvar' => 'tx_ttnews[pL]',
'noMatch' => 'bypass',
),
),
'browse' => array (
array (
'GETvar' => 'tx_ttnews[pointer]',
),
),
'category' => array (
array (
'GETvar' => 'tx_ttnews[cat]',
'lookUpTable' => array (
'table' => 'tt_news_cat',
'id_field' => 'uid',
'alias_field' => 'title',
'addWhereClause'=> 'AND NOT deleted',
'useUniqueCache'=> 1,
'useUniqueCache_conf' => array (
'strtolower' => 1,
'spaceCharacter' => '-',
),
),
),
),
'article' => array (
array (
'GETvar' => 'tx_ttnews[tt_news]',
'lookUpTable' => array (
'table' => 'tt_news',
'id_field' => 'uid',
//'alias_field' => 'title',
'alias_field' => 'tx_lonewsseo_alias',
'addWhereClause' => ' AND NOT deleted AND
NOT hidden',
'useUniqueCache' => 1,
'useUniqueCache_conf' => array (
'strtolower' => 1,
'spaceCharacter' => '-',
),
),
),
array(
'GETvar' => 'tx_ttnews[backPid]',
),
array (
'GETvar' => 'tx_ttnews[swords]',
),
),
),
),
'fileName' => array (
'defaultToHTMLsuffixOnPrev' => 1,
'acceptHTMLsuffix' => 1,
'index' => array (
'print' => array (
'keyValues' => array (
'type' => 98,
),
),
'rss.xml' => array (
'keyValues' => array (
'type' => 100,
),
),
'rss091.xml' => array (
'keyValues' => array (
'type' => 101,
),
),
'rdf.xml' => array (
'keyValues' => array (
'type' => 102,
),
),
'atom.xml' => array (
'keyValues' => array (
'type' => 103,
),
),
),
),
),
);
for($x=1; $x<=100; $x++) {
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']['fixedPostVars']['news'][0]['valueMap'][$x+1]
= $x;
}
/********* Skript-Ende ***********/
Gruß, Andreas
Am 05.01.2013 08:01, schrieb Georg Ringer:
> Hallo,
>
> vielleicht postest du das nächste mal auch die config, dann kann man
> sogar helfen oder jetzt wärs für andere hilfreich falls die mal das
> gleiche Problem haben
>
> Georg
> _______________________________________________
> TYPO3-at mailing list
> TYPO3-at at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-at
>
More information about the TYPO3-at
mailing list