[TYPO3-german] Re: RealURL greift nicht bei T3ExtBlog Seiten
Christian Siegmann
info at connectweb.ch
Sun Jan 10 01:09:23 CET 2016
Hallo Thomas
Ist zwar schon eine Weile her, aber vielleicht hlift Dir die Konfiguration weiter. Habe heute die Blogextension getestet und bin auf anhieb begeistert! Deshalb hab ich mich auch gleich an die Realurlconfig gemacht.
Hier meine Realurlconfig inkl. T3extblog:
<?php
$TYPO3_CONF_VARS['FE']['addRootLineFields'].= ',tx_realurl_pathsegment';
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
'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',
),
),
'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' => '-'
)
)
)
),
'60' => 'newsDetailConfiguration',
'701' => 'newsDetailConfiguration', // For additional detail pages, add their uid as well
'71' => 'newsTagConfiguration',
'24' => 'newsCategoryConfiguration',
),
'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]',
),
),
),
),
);
?>
Grüsse Christian
More information about the TYPO3-german
mailing list