[TYPO3-german] Re: RealURL greift nicht bei T3ExtBlog Seiten
Christian Siegmann
info at connectweb.ch
Sun Jan 10 09:37:23 CET 2016
Ich nochmal.
Ich habe die Config nochmal überarbeitet. Die Doppelungen im Pfad sind nun bereinigt. :-)
<?php
$TYPO3_CONF_VARS['FE']['addRootLineFields'].= ',tx_realurl_pathsegment';
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
# Realurl Basic Configuration start
'pagePath' => array(
'type' => 'user',
'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '-',
'languageGetVar' => 'L',
'expireDays' => '3',
'rootpage_id' => 1,
'firstHitPathCache'=>1
),
'init' => array(
'enableCHashCache' => TRUE,
'enableCHashCache' => 1,
'respectSimulateStaticURLs' => 0,
'enableUrlDecodeCache' => 1,
'enableUrlEncodeCache' => 1
),
'preVars' => array(
array(
'GETvar' => 'L',
'valueMap' => array(
'en' => '1',
),
'noMatch' => 'bypass',
),
array(
'GETvar' => 'no_cache',
'valueMap' => array(
'nc' => 1,
),
'noMatch' => 'bypass',
),
),
# Realurl Basic Configuration end
# Realurl T3ext Configuration start
'postVarSets' => array(
'_DEFAULT' => array(
't3extblog-action' => array(
array(
'GETvar' => 'tx_t3extblog_blogsystem[action]',
'noMatch' => 'bypass',
),
),
'article' => array(
array(
'GETvar' => 'tx_t3extblog_blogsystem[year]',
),
array(
'GETvar' => 'tx_t3extblog_blogsystem[month]',
),
array(
'GETvar' => 'tx_t3extblog_blogsystem[day]',
),
array(
'GETvar' => 'tx_t3extblog_blogsystem[post]',
'lookUpTable' => array(
'table' => 'tx_t3blog_post',
'id_field' => 'uid',
'alias_field' => 'title',
'addWhereClause' => ' AND NOT deleted AND NOT hidden',
'useUniqueCache' => 1,
'useUniqueCache_conf' => array(
'strtolower' => 1,
'spaceCharacter' => '-',
),
'enable404forInvalidAlias' => 1,
'autoUpdate' => 1,
'expireDays' => 180,
// language support (translated urls)
'languageGetVar' => 'L',
'languageExceptionUids' => '',
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l18n_parent',
),
),
),
// this is sufficient because we only need to change the controller keyword
// as create is the default action for comment controller
'comment' => array(
array(
'GETvar' => 'tx_t3extblog_blogsystem[controller]',
'noMatch' => 'bypass',
'valueMap' => array(
'new' => 'Comment',
),
),
),
'permalink' => array(
array(
'GETvar' => 'tx_t3extblog_blogsystem[permalinkPost]',
),
),
'preview' => array(
array(
'GETvar' => 'tx_t3extblog_blogsystem[previewPost]',
),
),
'tags' => array(
array(
'GETvar' => 'tx_t3extblog_blogsystem[tag]',
),
),
'category' => array(
array(
'GETvar' => 'tx_t3extblog_blogsystem[category]',
'lookUpTable' => array(
'table' => 'tx_t3blog_cat',
'id_field' => 'uid',
'alias_field' => 'catname',
'addWhereClause' => ' AND deleted !=1 AND hidden !=1',
'useUniqueCache' => 1,
'useUniqueCache_conf' => array(
'strtolower' => 1,
'spaceCharacter' => '-',
),
'enable404forInvalidAlias' => 1,
'autoUpdate' => 1,
'expireDays' => 180,
// language support (translated urls)
'languageGetVar' => 'L',
'languageExceptionUids' => '',
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l18n_parent',
)
)
),
'page' => array(
array(
'GETvar' => 'tx_t3extblog_blogsystem[@widget_0][currentPage]',
),
),
'subscription' => array(
array(
'GETvar' => 'tx_t3extblog_subscriptionmanager[action]',
'valueMap' => array(
'confirmation' => 'confirm',
'delete' => 'delete',
'error' => 'error',
'logout' => 'logout',
),
'noMatch' => 'bypass',
),
array(
'GETvar' => 'tx_t3extblog_subscriptionmanager[code]',
),
),
),
),
# Realurl T3ext Configuration end
);
?>
Grüsse Christian
More information about the TYPO3-german
mailing list