Antwort
 
LinkBack Themen-Optionen Thema bewerten Ansicht
  #1  
Alt 19.09.08, 23:26
Forum Zuschauer
 
Registriert seit: 19.09.08
Beiträge: 4

tt_news & realurl & RSS / Datum in url fehlt


Hallo Spezialisten,

ich habe folgendes Problem.
tt_news und realurl funktionieren.

Nun wird aber die URL aus den News heraus in dem Format dargestellt:
...blabla/sj/2008/09/19/news/titel-der-nachricht

Im RSS stellt Typo die URL folgendermaßen dar:

...blabla/news/titel-der-nachricht

Kann mir jemand helfen, damit das RSS den Ordner und das Datum mit in die URL reinschreibt.



Vermutlich liegt doch hier das Problem: ext_localconf.php
Zumindest da sprech ich als einziges den /sj/ und das /datum/ an...


PHP-Code:

<?php

$TYPO3_CONF_VARS
['SC_OPTIONS']['t3lib/class.t3lib_tstemplate.php']['linkData-PostProc']['tx_realurl'] = 'EXT:realurl/class.tx_realurl.php:&tx_realurl->encodeSpURL';
$TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['checkAlternativeIdMethods-PostProc']['tx_realurl'] = 'EXT:realurl/class.tx_realurl.php:&tx_realurl->decodeSpURL';
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearPageCacheEval']['tx_realurl'] = 'EXT:realurl/class.tx_realurl.php:&tx_realurl->clearPageCacheMgm';

$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCache_additionalTables']['tx_realurl_urldecodecache'] = 'tx_realurl_urldecodecache';
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCache_additionalTables']['tx_realurl_urlencodecache'] = 'tx_realurl_urlencodecache';

// Must use '&" with tcemain hook!!! Important for proper work of the hook.
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']['tx_realurl'] = 'EXT:realurl/class.tx_realurl_tcemain.php:&tx_realurl_tcemain';

$TYPO3_CONF_VARS['FE']['addRootLineFields'].= ',tx_realurl_pathsegment';

// Include configuration file
$_realurl_conf = @unserialize($_EXTCONF);
if (
is_array($_realurl_conf)) {
    
$_realurl_conf_file trim($_realurl_conf['configFile']);
    if (
$_realurl_conf_file && @file_exists(PATH_site $_realurl_conf_file)) {
        require_once(
PATH_site $_realurl_conf_file);
    }
    unset(
$_realurl_conf_file);
}

define('TX_REALURL_AUTOCONF_FILE''typo3conf/realurl_autoconf.php');
if (!isset(
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'])) {
    @include_once(
PATH_site TX_REALURL_AUTOCONF_FILE);
}
unset(
$_realurl_conf);

define('TX_REALURL_SEGTITLEFIELDLIST_DEFAULT''tx_realurl_pathsegment,alias,nav_title,title');
define('TX_REALURL_SEGTITLEFIELDLIST_PLO''nav_title,title');







$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' => '-',  ),),),),    
                                   
 
),),
);





$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
    
'_DEFAULT' => array(
        
'init' => array(
            
'useCHashCache' => '0',
            
'enableCHashCache' => 1,
            
'appendMissingSlash' => 'ifNotFile',
            
'enableUrlDecodeCache' => 1,
            
'enableUrlEncodeCache' => 1,
        ),
        
'redirects' => array(),
        
'preVars' => array(
            array(
                
'GETvar' => 'no_cache',
                
'valueMap' => array(
                    
'nc' => 1,
                ),
                
'noMatch' => 'bypass',
            ),
            array(
                
'GETvar' => 'L',
                
'valueMap' => array(
                    
'dk' => '2',
                    
'de' => '1',
                ),
                
'noMatch' => 'bypass',
            ),
        ),
        
'pagePath' => array(
            
'type' => 'user',
            
'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
            
'spaceCharacter' => '-',
            
'languageGetVar' => 'L',
            
'expireDays' => 7,
###### include your rootpage id here
            
'rootpage_id' => 1,
        ),
        
'fixedPostVars' => array(),
        
'postVarSets' => array(
            
'_DEFAULT' => array(
                




// news archive parameters
                
'sj' => array(
                    array(
                        
'GETvar' => 'tx_ttnews[year]' ,
                        ),
                    array(
                        
'GETvar' => 'tx_ttnews[month]' ,
                        
'valueMap' => array(
                            
'01' => '01',
                            
'02' => '02',
                            
'03' => '03',
                            
'04' => '04',
                            
'05' => '05',
                            
'06' => '06',
                            
'07' => '07',
                            
'08' => '08',
                            
'09' => '09',
                            
'10' => '10',
                            
'11' => '11',
                            
'12' => '12',
                            )
                        ),

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


                    ),

                
// news articles and searchwords
                
'news' => 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]',
                        ),
                    ),
                ),
            ),


        
// configure filenames for different pagetypes
        
'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,
                    ),
                ),
            ),
        ),
    ),
);



?>


Wär echt spitze, wenn irgendjemand Plan hat! Ich hab keinen !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #2  
Alt 21.09.08, 15:19
Forum Zuschauer
 
Registriert seit: 19.09.08
Beiträge: 4

Habe es hinbekommen!

Und zwar:

Im Typoscript muss der Eintrag

Typoscript-Code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
[b]# **********realUrl *************
config.simulateStaticDocuments = 0
config.tx_realurl_enable = 1
config.baseURL = [url=http://www.meine-domain.de/tp/]Meine-domain.de - Informationen zum Thema Domain registrieren. Diese Website steht zum Verkauf!

plugin.tt_news.useHRDatesSingle = 1
plugin.tt_news.useHRDatesSingleWithoutDay = 0
plugin.tt_news.dontUseBackPid = 1
plugin.tt_news.useHRDates = 1[/b]


VOR (!)
den Eintragungen des RSS Feeds stehen:
Sonst bekommt es das realurl nicht mit...

Typoscript-Code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
###RSS NEWSFEED
xmlnews = PAGE

xmlnews {
typeNum = 100
10 >
10 < plugin.tt_news
10.pid_list >
10.pid_list = {$plugin.tt_news.pid_list}
10.singlePid = {$plugin.tt_news.singlePid}
10.defaultCode = XML
config {
disableAllHeaderCode = 1
additionalHeaders = Content-type:text/xml
no_cache = 1
xhtml_cleaning = 1
}
}

page.headerData.500 = TEXT
page.headerData.500.value = <link rel="alternate" type="application/rss+xml" title="RSS-Feed" href="http://www.meine-domain.de/tp/index.php?id={$xmlnewsfeed_id}&type=100" />



Juhuu! Es tut!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
Antwort

Lesezeichen

Stichworte
realurl , rss , tt_news

Themen-Optionen
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
tt_news im FE fehlt die Formatierung lupus11 News (tt_news, mininews und Co) 0 23.05.08 13:19
Loading Bild bei tt_news fehlt mic_jan rg 3 26.03.08 10:18
tt_news > Datum komplett auf DE Toccamonium News (tt_news, mininews und Co) 7 09.01.08 11:46
datum mit realurl baserider News (tt_news, mininews und Co) 2 19.09.07 15:48
realurl Dateimame fehlt kay Suchmaschinenfreundliche URLs (SEO) 5 07.02.07 13:36


Alle Zeitangaben in WEZ +1. Es ist jetzt 03:58 Uhr.


Powered by vBulletin® Version 3.7.3 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0