[TYPO3-commerce] realurl and tx_commerce: does this work?
Rainer Th
hsnews at web-me.de
Sat Jan 12 20:51:01 CET 2008
Hi Folks,
I try to set up realurl with tx_commerce using the configuration as found in the tx_commerce wiki. realurl works fine for the URI
down to the shop, but the tx_commerce categories and products are not converted. So I get this:
http://www0.hefter-ft.de/shop/produktliste.html?tx_commerce_pi1%5BshowUid%5D=6&tx_commerce_pi1%5BcatUid%5D=3&cHash=47cb7275e6
Thank you for any hints!
Rainer
My realurl related localconf.php content:
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] =
array(
'init' => array(
'useCHashCache' => '0',
'enableCHashCache' => 1,
'respectSimulateStaticURLs' => 'TRUE',
'appendMissingSlash' => 'ifNotFile',
'enableUrlDecodeCache' => '1',
'enableUrlEncodeCache' => '1',
),
'preVars' => array(
array(
'GETvar' => 'no_cache',
'valueMap' => array(
'no_cache' => 1,
'nc' => 1,
),
'noMatch' => 'bypass',
),
array(
'GETvar' => 'L',
'valueMap' => array(
'de' => '0',
'en' => '1',
),
'noMatch' => 'bypass',
),
),
'pagePath' => array(
'type' => 'user',
'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '-',
'segTitleFieldList' => 'alias,tx_realurl_pathsegment,nav_title,title',
'languageGetVar' => 'L',
'expireDays' => 1,
'disablePathCache' => 1,
'rootpage_id' => 1,
),
'fileName' => array(
'index' => array(
'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,
),
),
),
),
'postVarSets' => array(
'_DEFAULT' => array(
'browse' => array(
array(
'GETvar' => 'tx_ttnews[pointer]',
'valueMap' => array(
'weiter' => '1',
'weiter' => '2',
)
),
),
// news kategorien
'kategorie' => 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' => '-',
),
),
),
),
// news artikel
'datum' => 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',
'useUniqueCache' => 1,
'useUniqueCache_conf' => array(
'strtolower' => 1,
'spaceCharacter' => '-',
),
),
),
),
// product categories
'cat' => array(
array(
'GETvar' => 'tx_commerce_pi1[catUid]',
'lookUpTable' => array(
'table' => 'tx_commerce_categories',
'id_field' => 'uid',
'alias_field' => 'title',
'addWhereClause' => ' AND NOT deleted',
'enable404forInvalidAlias' => '1',
'useUniqueCache' => 1,
'useUniqueCache_conf' => array(
'strtolower' => 1,
'spaceCharacter' => '-',
),
),
),
),
// product
'pr' => array(
array(
'GETvar' => 'tx_commerce_pi1[showUid]',
'lookUpTable' => array(
'table' => 'tx_commerce_products',
'id_field' => 'uid',
'alias_field' => 'title',
'addWhereClause' => ' AND NOT deleted',
'enable404forInvalidAlias' => '1',
'useUniqueCache' => 1,
'useUniqueCache_conf' => array(
'strtolower' => 1,
'spaceCharacter' => '-',
),
),
),
),
),
),
);
More information about the TYPO3-project-commerce
mailing list