Zum Inhalt springen

tt_news - Single-Anzeige geht nicht

Erstellt am 17. Juli 2008 · 7 Antworten · letzte Antwort am 17. Juli 2008

Tags: RealURL, tt_news, TYPO3 4, Frage

Reimemonster ·

Hallo

ich hab folgendes Problem mit tt_news.
Die Extension funzt soweit gut. Wenn ich aber nun auf den link zur Single-Ansicht klicke, werde ich nicht weitergeleitet, sondern komme immer auf die Startseite. Ich denke es ist alles soweit richtig konfiguriert.

Kann das ein Problem mit RealURL sein?

just2b ·

Hallo,

das sind ja eine Menge an Infos... wie schauen die links aus? funkts ohne realurl? wie ist realurl konfiguriert?

georg

just2b ·

der link kann ja nicht stimmen, da steht keine Seitenid drinnen und nach Realurl schaut das nicht aus, sonst wären die parameter aufgelöst

georg

Reimemonster ·

Ok ich poste mal meine localconf.php

<?php


$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
        'init' => array(
            'enableCHashCache' => 1,
            'appendMissingSlash' => 'ifNotFile',
            'enableUrlDecodeCache' => 1,
            'enableUrlEncodeCache' => 1,
            'respectSimulateStaticURLs' => 0,
            'postVarSet_failureMode'=>'redirect_goodUpperDir',
        ),
    'redirects_regex' => array (
    
    ),
    'preVars' => array(
                        array(
                                'GETvar' => 'no_cache',
                                'valueMap' => array(
                                    'no_cache' => 1,
                                ),
                                'noMatch' => 'bypass',
                        ),
                         array(
                             'GETvar' => 'L',
                             'valueMap' => array(
                                                'en' => '1',
                                        ),
                                'noMatch' => 'bypass',
                        ),
                ),
     'pagePath' => array (
                 'type' => 'user',
                 'userFunc' => 'EXT:aoe_realurlpath/class.tx_aoerealurlpath_pagepath.php:&tx_aoerealurlpath_pagepath->main',
                 'spaceCharacter' => '-',
                 'cacheTimeOut'=>'100',
                 'languageGetVar' => 'L', 
                 'rootpage_id' => '1',
                 'segTitleFieldList'=>'alias,tx_aoerealurlpath_overridesegment,nav_title,title,subtitle',
            ),
      'postVarSets' => array(
            '_DEFAULT' => array(
                // news archive parameters
                'archive' => array(
                    array(
                        'GETvar' => 'tx_ttnews[year]' ,
                        ),
                    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',
                            )
                        ),
                    ),
                // news pagebrowser
                'browse' => array(
                    array(
                        'GETvar' => 'tx_ttnews[pointer]',
                        ),
                    ),
                // news categories
                'select_category' => array (
                    array(
                        'GETvar' => 'tx_ttnews[cat]',
                        ),
                    ),
                // news articles and searchwords
                'article' => array(
                    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' => '-',
                                ),
                            ),
                        ),
                    array(
                        'GETvar' => 'tx_ttnews[swords]',
                        ),
                    ),
                ),             
            ),

      'fileName' => array(
            'defaultToHTMLsuffixOnPrev'=>1,
            '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,
                    ),
                ),
            ),
        ),
 );


?>

Welcher Inhalt müsste denn noch rein?

Hab' da recht wenig Erfahrung.

Reimemonster ·

OK, OK.....

Hier die funktionierende Localconf:

$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
    '_DEFAULT' => array(
         'init' => array(
             'enableCHashCache' => 1,
             // 'appendMissingSlash' => 'ifNotFile',
             'enableUrlDecodeCache' => 1,
             'enableUrlEncodeCache' => 1,
             ),
         'redirects' => array(),
         'preVars' => array(
             //match &no_cache=1 with path prefix /nc
             array(
                 'GETvar' => 'no_cache',
                 'valueMap' => array(
                     'nc' => 1,
                     ),
                 'noMatch' => 'bypass',
                 ),
             //multiple language matching L=1 is replaced by /hu
             //value are user defiened depending of the order you've inserted your
             //alternative language in TYPO3. See sys_language table for ID
             array(
                 'GETvar' => 'L',
                 'valueMap' => array(
                     'en' => '1',
                     'fr' => '2',
                     'es' => '3',
                     'de' => '4',
                     'it' => '5',
                     'cn' => '6',
                     'gr' => '7',
                     'l8' => '8',
                     'l9' => '9',
                     'ru' => '10',
                     'l11'=> '11',
                     'tr' => '12',
                     'bg' => '13',
                     'se' => '14',
                     'dk' => '15',
                     'no' => '16',
                     'fi' => '17',
                     'al' => '18',
                     'cz' => '19',                     
                     ),
                 'noMatch' => 'bypass',
                 ),
              ),
          // use extended page name rendering
          // page names are converted to readalbe page/sub-page/sub-sub-page.html
         'pagePath' => array(
               'type' => 'user',
             'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
             'spaceCharacter' => '-',
             'languageGetVar' => 'L',
             'expireDays' => 7,
             'rootpage_id' => 2,
             'segTitleFieldList' => 'alias,tx_realurl_pathsegment,nav_title,title',
         'disablePathCache' => 1,
             // 'encodeTitle_userProc'=>'EXT:realurl/tx_realurl_encodeTitle_userProc.php:&user_encodeDates',
             ),
         'fixedPostVars' => array(),
         // match extension parameter
         'postVarSets' => array(
             '_DEFAULT' => array(
                 // archive
                 'period' => array(
                     array(
                         'condPrevValue' => -1,
                         'GETvar' => 'tx_ttnews[pS]' ,
                         // 'valueMap' => array(
                         //
                         // )
                         ),
                     array(
                         'GETvar' => 'tx_ttnews[pL]' ,
                         // 'valueMap' => array(
                         //
                         // )
                         ),
                     array(
                         'GETvar' => 'tx_ttnews[arc]' ,
                         'valueMap' => array(
                             'archived' => 1,
                             'non-archived' => -1,
                             )
                          ),
                     ),
                 // pagebrowser
                 'browse' => array(
                     array(
                         'GETvar' => 'tx_ttnews[pointer]',
                         ),
                      ),
                 'select' => 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,
                                 ),
                             ),
                         ),
                     ),
                 'index' => array ( 
                     array(
                         'GETvar' => 'news[cat]',
                         'lookUpTable' => array(
                             'table' => 'tt_news_cat',
                             'id_field' => 'uid',
                             'alias_field' => 'title',
                             'addWhereClause' => ' AND NOT deleted',
                             'useUniqueCache' => 1,
                             'useUniqueCache_conf' => array(
                                 'strtolower' => 1,
                                 ),
                             ),
                         ),
                     ),
           'article' => array(
                       array(
                           'GETvar' => 'tx_ttnews[backPid]',
                           ),
                       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' => 0,
                                 'spaceCharacter' => '-',
                                 ),
                              ),
                         ),
                      array(
                          'GETvar' => 'tx_ttnews[swords]'
                         ),
                      ),
                  ),
             ),
         // map some type to file name: rss.xml = &typo=100
         'fileName' => array(
              'index' => array(
                   'rss.xml' => array(
                        'keyValues' => array(
                             'type' => 100,
                         ),
                     ),
                 // 'index.html' => array(
                 // 'keyValues' => array(),
                 // ),
                 'sitemap.xml' => array(
                    'keyValues' => array(
                        'id'    => 'googlesitemap',
                        ),
                    ),
                 ),
             // add .html suffix to the end of the path generated
             'defaultToHTMLsuffixOnPrev' => 1,
             ),
         )
     );