Hallo,
habe schon zahlreiche Sachen zu dieser Thematik in Foren gefunden aber irgendwie funktioniert es nicht.
realurl Version 1.9.4
Ich habe folgende Config (s.u.):
Das Problem ist es wird wie folgt angezeigt:
www.domain.de/6/
statt dem name wird als die pid angezeigt
TS-Setup:
# RealURL aktivieren
config.simulateStaticDocuments = 0
config.baseURL = http://www.domain.tld
config.tx_realurl_enable = 1
config.prefixLocalAnchors = all
Autoconfig ist deaktiviert unter Ext.Manager
ext_localconf.php (typo3conf/ext/realurl):
<?php
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tstemplate.php']['linkData-PostProc']['tx_realurl'] = 'EXT:realurl/class.tx_realurl.php:&tx_realurl->encodeSpURL';
$TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_content.php']['typoLink_PostProc']['tx_realurl'] = 'EXT:realurl/class.tx_realurl.php:&tx_realurl->encodeSpURL_urlPrepend';
$TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['checkAlternativeIdMethods-PostProc']['tx_realurl'] = 'EXT:realurl/class.tx_realurl.php:&tx_realurl->decodeSpURL';
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearPageCacheEval']['tx_realurl'] = 'EXT:realurl/class.tx_realurl.php:&tx_realurl->clearPageCacheMgm';
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCache_additionalTables']['tx_realurl_urldecodecache'] = 'tx_realurl_urldecodecache';
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCache_additionalTables']['tx_realurl_urlencodecache'] = 'tx_realurl_urlencodecache';
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']['tx_realurl'] = 'EXT:realurl/class.tx_realurl_tcemain.php:&tx_realurl_tcemain';
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass']['tx_realurl'] = 'EXT:realurl/class.tx_realurl_tcemain.php:&tx_realurl_tcemain';
$TYPO3_CONF_VARS['FE']['addRootLineFields'] .= ',tx_realurl_pathsegment,tx_realurl_exclude';
$TYPO3_CONF_VARS['FE']['pageOverlayFields'] .= ',tx_realurl_pathsegment';
// Include configuration file
$_realurl_conf = @unserialize($_EXTCONF);
if (is_array($_realurl_conf)) {
$_realurl_conf_file = trim($_realurl_conf['configFile']);
if ($_realurl_conf_file && @file_exists(PATH_site . $_realurl_conf_file)) {
require_once(PATH_site . $_realurl_conf_file);
}
unset($_realurl_conf_file);
}
define('TX_REALURL_AUTOCONF_FILE', 'typo3conf/realurl_autoconf.php');
if (!isset($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'])) {
@include_once(PATH_site . TX_REALURL_AUTOCONF_FILE);
}
unset($_realurl_conf);
define('TX_REALURL_SEGTITLEFIELDLIST_DEFAULT', 'tx_realurl_pathsegment,alias,nav_title,title,uid');
define('TX_REALURL_SEGTITLEFIELDLIST_PLO', 'tx_realurl_pathsegment,nav_title,title,uid');
// TYPO3 clean up handler
//$GLOBALS ['TYPO3_CONF_VARS']['EXTCONF']['lowlevel']['cleanerModules'][$_EXTKEY] = array('EXT:' . $_EXTKEY . '/class.tx_realurl_cleanuphandler.php:tx_realurl_cleanuphandler');
?>
realurl_conf.php (typo3conf):
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array (
'init' => array(
'useCHashCache' => 0,
'enableCHashCache' => 1,
'enableUrlDecodeCache' => 1,
'enableUrlEncodeHash' => 1
),
'preVars' => array (
array (
'GETvar' => 'L',
'valueMap' => array (
'de' => 1
),
'noMatch' => 'bypass'
),
array (
'GETvar' => 'no_cache',
'valueMap' => array (
'nc' => 1
),
'noMatch' => 'bypass'
)
),
'postVarSets' => array (
'_DEFAULT' => array (
// all news display stuff
'date' => array (
array ('GETvar' => 'tx_ttnews[year]'),
array ('GETvar' => 'tx_ttnews[month]'),
array ('GETvar' => 'tx_ttnews[day]'),
array (
'GETvar' => 'tx_ttnews[tt_news]',
'lookUpTable' => array (
'table' => 'tt_news',
'id_field' => 'uid',
'alias_field' => 'title',
'addWhereClause' => ' AND NOT deleted AND NOT hidden',
'useUniqueCache' => 1,
'useUniqueCache_conf' => array (
'strtolower' => 1,
'spaceCharacter' => '-',
)
)
)
),
// gallery
'show' => array (
array (
'GETvar' => 'tx_lzgallery_pi1[showUid]',
'lookUpTable' => array (
'table' => 'tx_lzgallery_galleries',
'id_field' => 'uid',
'alias_field' => 'title',
'addWhereClause' => ' AND NOT deleted',
'useUniqueCache' => 1,
'useUniqueCache_conf' => array (
'strtolower' => 1,
'spaceCharacter' => '-',
)
)
)
)
)
),
'fileName' => array (
'defaultToHTMLsuffixOnPrev' => 1,
'index' => array (
'rss.xml' => array (
'keyValues' => array (
'type' => 100
)
),
'print.html' => array (
'keyValues' => array (
'type' => 98
)
),
'_DEFAULT' => array ('keyValues' => array ())
)
)
);
$TYPO3_CONF_VARS['EXTCONF']['realurl']['t3u.local'] = $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'];
.htaccess (root):
RewriteEngine On
RewriteBase /
RewriteRule ^(typo3|typo3temp|typo3conf|t3lib|tslib|fileadmin|uploads|showpic\.php)/ - [L]
RewriteRule ^typo3$ typo3/index_re.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* /index.php [L]
Hat jemand eine Idee?
Danke und Grüße