Zum Inhalt springen

Ich werd noch irre. Realurl + MM_Forum + tt_news

Erstellt am 3. April 2008 · 11 Antworten · letzte Antwort am 6. Mai 2008

Tags: RealURL, tt_news, Frage

Parlt ·

Hallo ich dreh mich im Kreis, vielleicht könnt ihr mir helfen ich versuche mit realurl das mm_forum, tt_news und tt_Products unter einen Hut zu bringen. Beim MM_forum funzt es auch doch die beiden anderen Extensions werden nicht modifiziert. Wisst ihr evtl. Abhilfe. Anbei Poste ich meine RealURlKonfi.

<?php
/**
 *
 * aeUrlTool default realurl configuration
 * based on realurl-configuration of news.typo3.org
 *      http://news.typo3.org/about/realurl-configuration/
 *
 */

$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'] = array (
	'_DEFAULT' => array (
		'init' => array (
			'enableCHashCache' => '1',
			'appendMissingSlash' => 'ifNotFile',
			'enableUrlDecodeCache' => '1',
			'enableUrlEncodeCache' => '1',
		),
		'redirects' => array (
		),
		'preVars' => array (
 			'0' => array (
      				'GETvar' => 'no_cache',
  					'valueMap' => array (
            					'nc' => '1',
        					),
              				'noMatch' => 'bypass'
            		),
            		'1' => array (
                			'GETvar' => 'L',
                			'valueMap' => array (
                    			'de' => '0',
                    			'en' => '1',
                    			'es' => '2',
                			),
                			'noMatch' => 'bypass',
           		 ),
            		'2' => array (
                			'GETvar' => 'lang',
                			'valueMap' => array (
                    			'de' => 'de',
                    			'en' => 'en',
                    			'en' => 'es',
                			),
                			'noMatch' => 'bypass',
            		),
		),
        		'pagePath' => array (
            		'type' => 'user',
            		'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
            		'spaceCharacter' => '-',
            		'languageGetVar' => 'L',
            		'expireDays' => '7',
            		'rootpage_id' => '1',
        		),
		'fixedPostVars' => array(
			'mm_forum' => array(
				array(
					'GETvar' => 'tx_mmforum_pi1[action]',
                                 	'valueMap' => array(
                             		'thread' => 'list_topic',
                                     	'post' => 'list_post',
                                 ),
			),
			array(
          			'GETvar' => 'tx_mmforum_pi1[fid]',
				'lookUpTable' => array(
                     			'table' => 'tx_mmforum_forums' ,
                               		'id_field' => 'uid',
                                 	'alias_field' => 'forum_name',
                            		'addWhereClause' => ' AND NOT
					deleted',
                                         'useUniqueCache' => 1,
                                 	'useUniqueCache_conf' => array(
                                     		'strtolower' => 1,
                                           	'spaceCharacter' =>
						'-',
                                         ),
				),
			),
			array(
 			'GETvar' => 'tx_mmforum_pi1[tid]',
                    	'lookUpTable' => array(
                    		'table' => 'tx_mmforum_topics' ,
                              	'id_field' => 'uid',
                            	'alias_field' => 'topic_title',
                         	'addWhereClause' => ' AND NOT
				deleted',
                               	'useUniqueCache' => 1,
                        		'useUniqueCache_conf' => array(
                          		'strtolower' => 1,
                                 	'spaceCharacter' =>
					'-',
               			),
			),
		),
		array(
			'GETvar' => 'tx_mmforum_pi1[page]',
		),
      		array(
   			'GETvar' => 'tx_mmforum_pi1[user_id]',
		),
	),
	'102' =>'mm_forum' ,
),
   // product categories
'categories' => array(
        array(
                'GETvar' => 'tx_ttproducts_pi1[cat]',
                'lookUpTable' => array(
                        'table' => 'tt_products_cat',
                        'id_field' => 'uid',
                        'alias_field' => 'title',
                        'addWhereClause' => ' AND NOT deleted',
                        'useUniqueCache' => 1,
                        'useUniqueCache_conf' => array(
                                'strtolower' => 1,
                                'spaceCharacter' => '-',
                        ),
                ),
        ),
),
// products
'products' => array(
        array(
                'GETvar' => 'tx_ttproducts_pi1[product]',
                'lookUpTable' => array(
                        'table' => 'tt_products',
                        'id_field' => 'uid',
                        'alias_field' => 'title',
                        'addWhereClause' => ' AND NOT deleted',
                        'useUniqueCache' => 1,
                        'useUniqueCache_conf' => array(
                                'strtolower' => 1,
                                'spaceCharacter' => '-',
                        ),
                ),
        ),
),
// backPID
'backPID' => array(
        array(
                'GETvar' => 'tx_ttproducts_pi1[backPID]',
                'lookUpTable' => array(
                        'table' => 'pages',
                        'id_field' => 'uid',
                        'alias_field' => 'title',
                        'addWhereClause' => ' AND NOT deleted',
                        'useUniqueCache' => 1,
                        'useUniqueCache_conf' => array(
                                'strtolower' => 1,
                                'spaceCharacter' => '-',
                        ),
                ),
        ),
),

        'postVarSets' => array (
            '_DEFAULT' => array (
                'archive' => array (
                    '0' => array (
                        'GETvar' => 'tx_ttnews[year]',
                    ),
                    '1' => 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',
                        ),
                    ),
                ),
                'browse' => array (
                    '0' => array (
                        'GETvar' => 'tx_ttnews[pointer]',
                    ),
                ),
                'select_category' => array (
                    '0' => array (
                        'GETvar' => 'tx_ttnews[cat]',
                    ),
                ),
                'article' => array (
                    '0' => 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' => '-',
                            ),
                        ),
                    ),
                    '1' => array (
                        'GETvar' => 'tx_ttnews[swords]',
                    ),
                ),
            ),
        ),
        'fileName' => array (
//
// if you don't want .html-URLs set the following to "false" (e.g. 'defaultToHTMLsuffixOnPrev' => false,)
// then you get http://www.yourdomain.com/imprint/ instead of http://www.yourdomain.com/imprint.html
//
            'defaultToHTMLsuffixOnPrev' => true,
            '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',
                    ),
                ),
            ),
        ),
    ),

);

?>

Beste Grüße Pierre

just2b ·

gewöhn dir eine einrückung ein, dann siehst du die fehler auch.

tx_ttproducts_pi1 gehört in die postvars oder von mir aus fixedpostvars

georg

Parlt ·

Danke für die Antwort aber könntest du mir das an meinem Geposteten Quelcode demonstrieren. Ich kann leider nicht nachvollziehen was du meinst.
Beste Grüße Pierre

just2b ·
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'] = array (
	'_DEFAULT' => array (
		'init' => array (
			'enableCHashCache' => '1',
			'appendMissingSlash' => 'ifNotFile',
			'enableUrlDecodeCache' => '1',
			'enableUrlEncodeCache' => '1',
		),
		'redirects' => array (
		),
		'preVars' => array (
 			'0' => array (
      				'GETvar' => 'no_cache',
  					'valueMap' => array (
            					'nc' => '1',
        					),
              				'noMatch' => 'bypass'
            		),
            		'1' => array (
                			'GETvar' => 'L',
                			'valueMap' => array (
                    			'de' => '0',
                    			'en' => '1',
                    			'es' => '2',
                			),
                			'noMatch' => 'bypass',
           		 ),
            		'2' => array (
                			'GETvar' => 'lang',
                			'valueMap' => array (
                    			'de' => 'de',
                    			'en' => 'en',
                    			'en' => 'es',
                			),
                			'noMatch' => 'bypass',
            		),
		),
        		'pagePath' => array (
            		'type' => 'user',
            		'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
            		'spaceCharacter' => '-',
            		'languageGetVar' => 'L',
            		'expireDays' => '7',
            		'rootpage_id' => '1',
        		),
		'fixedPostVars' => array(
			'mm_forum' => array(

	),
	'102' =>'mm_forum' ,
),
   // product categories
'categories' => array(

),
// products
'products' => array(

),
// backPID
'backPID' => array(

),

        'postVarSets' => array (
            '_DEFAULT' => array (

            ),
        ),
        'fileName' => array (

        ),
    ),

);

?>

Ich hab das mal gekürzt: Von #46-#51 gehen die fixedpostvars, danach auf der gleichen Ebene kommen die products und da steckt zumindest ein Fehler schon. Denn die products müssen in die postvarsets, die du in #65 hast.

Fang am besten mit der localconf neu an, mit sauberer Einrückung. Sowohl für tt_news als auch fürs mm_forum gibts ein Bsp , wo auch steht was hingehört.

zu deiner PM an mich 3 Punkte:
- Bitte das nächste mal die Signatur von mir beachten
- Ich suche hier gott sei dank keine Freunde, sondern gebe nur technischen Rat,und der darf kurz sein und hat mit unfreundlich nichts zu tun
- auch wenn ich hier Mod bin, darf ich mir aussuchen wann ich wem antworte

georg

Parlt ·

Hi danke für deine Antwort, doch ich kann es immer noch nicht nachvollziehen. Könntest du mir das in der Komplettheit einmal korrigiert posten? Dank dir

Michaelh74 ·

Was kannst Du denn genau nicht nachvollziehen?
Tipps und Unterstützung gibt es gerne, aber die Hausaufgaben müssen schon selbst erledigt werden. Sowas wie: "Hier meine Code ist wohl ein Fehler drin. Bitte korrigiert an mich zurück." geht zumindest für micht nicht. Bei einem konkreten Problem mit kurzen Code Ausschnitt ja, aber bitte nicht 250 Zeilen...

Gruß
Michael

Parlt ·

OK Es funz jetzt, doch wie kann ich die URl umstellen von:
http://www.didgenculture.com/de/shop/buecher-zeitschriften/products/die-neuen-didgeridoos-david-lindener/backPID/buecher-zeitschriften.html
in:
http://www.didgenculture.com/de/shop/buecher-zeitschriften/backPID/die-neuen-didgeridoos-david-lindener.html

Anbei meine RealurlKonfi.

<?php
/**
 *
 * aeUrlTool default realurl configuration
 * based on realurl-configuration of news.typo3.org
 *      http://news.typo3.org/about/realurl-configuration/
 *
 */

$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'] = array (
	'_DEFAULT' => array (
		'init' => array (
			'enableCHashCache' => '1',
			'appendMissingSlash' => 'ifNotFile',
			'enableUrlDecodeCache' => '1',
			'enableUrlEncodeCache' => '1',
		),
		'redirects' => array (
		),
		'preVars' => array (
 			'0' => array (
      				'GETvar' => 'no_cache',
  					'valueMap' => array (
            					'nc' => '1',
        					),
              				'noMatch' => 'bypass'
            		),
            		'1' => array (
                			'GETvar' => 'L',
                			'valueMap' => array (
                    			'de' => '0',
                    			'en' => '1',
                    			'es' => '2',
                			),
                			'noMatch' => 'bypass',
           		 ),
            		'2' => array (
                			'GETvar' => 'lang',
                			'valueMap' => array (
                    			'de' => 'de',
                    			'en' => 'en',
                    			'en' => 'es',
                			),
                			'noMatch' => 'bypass',
            		),
		),
        		'pagePath' => array (
            		'type' => 'user',
            		'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
            		'spaceCharacter' => '-',
            		'languageGetVar' => 'L',
            		'expireDays' => '7',
            		'rootpage_id' => '1',
        		),
		'fixedPostVars' => array(
			'mm_forum' => array(
				array(
					'GETvar' => 'tx_mmforum_pi1[action]',
                                 	'valueMap' => array(
                             		'thread' => 'list_topic',
                                     	'post' => 'list_post',
                                 ),
			),
			array(
          			'GETvar' => 'tx_mmforum_pi1[fid]',
				'lookUpTable' => array(
                     			'table' => 'tx_mmforum_forums' ,
                               		'id_field' => 'uid',
                                 	'alias_field' => 'forum_name',
                            		'addWhereClause' => ' AND NOT
					deleted',
                                         'useUniqueCache' => 1,
                                 	'useUniqueCache_conf' => array(
                                     		'strtolower' => 1,
                                           	'spaceCharacter' =>
						'-',
                                         ),
				),
			),
			array(
 			'GETvar' => 'tx_mmforum_pi1[tid]',
                    	'lookUpTable' => array(
                    		'table' => 'tx_mmforum_topics' ,
                              	'id_field' => 'uid',
                            	'alias_field' => 'topic_title',
                         	'addWhereClause' => ' AND NOT
				deleted',
                               	'useUniqueCache' => 1,
                        		'useUniqueCache_conf' => array(
                          		'strtolower' => 1,
                                 	'spaceCharacter' =>
					'-',
               			),
			),
		),
		array(
			'GETvar' => 'tx_mmforum_pi1[page]',
		),
      		array(
   			'GETvar' => 'tx_mmforum_pi1[user_id]',
		),
	),
	'102' =>'mm_forum' ,
),


        'postVarSets' => array (
            '_DEFAULT' => array (
               // product categories
'categories' => array(
        array(
                'GETvar' => 'tx_ttproducts_pi1[cat]',
                'lookUpTable' => array(
                        'table' => 'tt_products_cat',
                        'id_field' => 'uid',
                        'alias_field' => 'title',
                        'addWhereClause' => ' AND NOT deleted',
                        'useUniqueCache' => 1,
                        'useUniqueCache_conf' => array(
                                'strtolower' => 1,
                                'spaceCharacter' => '-',
                        ),
                ),
        ),
),
// products
'products' => array(
        array(
                'GETvar' => 'tx_ttproducts_pi1[product]',
                'lookUpTable' => array(
                        'table' => 'tt_products',
                        'id_field' => 'uid',
                        'alias_field' => 'title',
                        'addWhereClause' => ' AND NOT deleted',
                        'useUniqueCache' => 1,
                        'useUniqueCache_conf' => array(
                                'strtolower' => 1,
                                'spaceCharacter' => '-',
                        ),
                ),
        ),
),
// backPID
'backPID' => array(
        array(
                'GETvar' => 'tx_ttproducts_pi1[backPID]',
                'lookUpTable' => array(
                        'table' => 'pages',
                        'id_field' => 'uid',
                        'alias_field' => 'title',
                        'addWhereClause' => ' AND NOT deleted',
                        'useUniqueCache' => 1,
                        'useUniqueCache_conf' => array(
                                'strtolower' => 1,
                                'spaceCharacter' => '-',
                        ),
                ),
        ),
),
                'archive' => array (
                    '0' => array (
                        'GETvar' => 'tx_ttnews[year]',
                    ),
                    '1' => 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',
                        ),
                    ),
                ),
                'browse' => array (
                    '0' => array (
                        'GETvar' => 'tx_ttnews[pointer]',
                    ),
                ),
                'select_category' => array (
                    '0' => array (
                        'GETvar' => 'tx_ttnews[cat]',
                    ),
                ),
                'article' => array (
                    '0' => 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' => '-',
                            ),
                        ),
                    ),
                    '1' => array (
                        'GETvar' => 'tx_ttnews[swords]',
                    ),
                ),
            ),
        ),
        'fileName' => array (
//
// if you don't want .html-URLs set the following to "false" (e.g. 'defaultToHTMLsuffixOnPrev' => false,)
// then you get http://www.yourdomain.com/imprint/ instead of http://www.yourdomain.com/imprint.html
//
            'defaultToHTMLsuffixOnPrev' => true,
            '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',
                    ),
                ),
            ),
        ),
    ),

);

?>
elTorito ·

hmm. ohne gewaehr, sind nur meine gedanken ;-)
ich denke er meint :

array(
      'GETvar' => 'tx_ttnews[backPid]',
),

oder

dontUseBackPid = 0

Steig da grad selber nicht so durch und versuche meine News realUrl faehig zu machen. Ich erhalte zwar einen realUrl formatierten link:

http://www.peter-karsten.de/article/nightshots//429.html

Aber wenn ich drauf klicke bleib ich auf der gleichen Seite wie die News Liste.
Singleview Page id hab ich im Template angegeben.

Parlt ·

Hmm, danke für die Antwort, was ich ein wenig verwirrend finde ist, das mir bei meiner frage zu tt_products mit dem Hinweis auf tt_news geantwortet wurde. Es ging mir darum wie ich die von tt_products und realurl erstellt Url modifizeren kann. Also von:
http://www.didgenculture.com/de/shop/buecher-zeitschriften/products/die-neuen-didgeridoos-david-lindener/backPID/buecher-zeitschriften.html
in:
http://www.didgenculture.com/de/shop/buecher-zeitschriften/backPID/die-neuen-didgeridoos-david-lindener.html

Wobei bis hierhin:
http://www.didgenculture.com/de/shop/buecher-zeitschriften/
regulöre Seiten existieren und erst ab hier "products/" die realurl + tt_products Kombination aktiv ist.

Vielleicht weis jemand eine Rat?

MFG Pierre

Alex ·

Hallo,

ich beschäftige mich erst seit ungefähr einer Woche mit Realurl.

Ich habe herausgefunden, dass man Einträge die zwar im normalen nicht Realurl-Pfad enthalten sind folgendermaßen im Realurl-Pfad löschen kann.

// backPID
'backPID' => array(
        array(
                'GETvar' => 'tx_ttproducts_pi1[backPID]',
                'lookUpTable' => array(
                        'table' => 'pages',
                       'id_field' => 'uid',
                        'alias_field' => 'title',
                        'addWhereClause' => ' AND NOT deleted',
                        'useUniqueCache' => 1,
                        'useUniqueCache_conf' => array(
                                'strtolower' => 1,
                                'spaceCharacter' => '-',
                        ),
                ),
        ),
),
// backPID
'' => array(
        array(
                'GETvar' => 'tx_ttproducts_pi1[backPID]',
                'noMatch' => 'bypass',
        ),
),

oder gibt es eine bessere Lösung?

Alex