Hallo zusammen,
ich versuche seit Tagen RealUrl und tt_news aufeinander abzustimmen um kürzere URLs zu bekommen.
Eigentlich habe ich es soweit geschafft, aber ich hätte die URL gerne noch etwas kürzer.
Aktuell:
http://www.SEITE.de/blog/news/article/NEWS_TITEL/
Ich hätte es aber gerne als:
http://www.SEITE.de/blog/NEWS_TITEL/
also das news/article weg.
Nur was muss ich dafür ändern ? 🙁
Meine ext_localconf.php:
$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
'_DEFAULT' => array(
'init' => array(
'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,
'rootpage_id' => 1,
),
'fixedPostVars' => array(),
'postVarSets' => array(
'_DEFAULT' => array(
// news archive parameters
'archive' => array(
array(
'GETvar' => 'tx_ttnews[year]' ,
),
array(
'GETvar' => 'tx_ttnews[month]' ,
'valueMap' => array(
'januar' => '01',
'februar' => '02',
'maerz' => '03',
'april' => '04',
'may' => '05',
'juni' => '06',
'juli' => '07',
'august' => '08',
'september' => '09',
'oktober' => '10',
'november' => '11',
'dezember' => '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]',
),
array(
'GETvar' => 'tx_ttnews[backPid]',
),
),
),
),
// 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,
),
),
),
),
),
);
Constants-Template:
# Page ID News:Die ID der Seite wo die News drin sind
pid_list = 16
#Page ID Singlenews:Die ID der Seite wo die SingleNews drin sind
singlePid = 19
#Page ID Archive:Die ID der Seite wo das Archive drin sind
archiveTypoLink = 17
plugin.tt_news {
useHRDates = 0
allowCaching = 1
dontUseBackPid = 1
useHRDates = 1
useHRDatesSingle = 1
useHRDatesSingleWithoutDay = 1
}
Setup-Template:
#Pfad zum eigenen Template
plugin.tt_news.templateFile = fileadmin/templates/news_template.tmpl
# Variable pid_list wird leer gemacht
plugin.tt_news.pid_list >
# PID wird über eine Konstante festgelegt
plugin.tt_news.pid_list = {$pid_list}
#Rekursiv, wenn euere News in Unterordner sind
plugin.tt_news.recursive >
plugin.tt_news.recursive = 1
#UID der Seite Singleview
plugin.tt_news.singlePid = {$singlePid}
#Archive Aktivieren
#UID der Archiveseite
plugin.tt_news {
archive = 17
archiveTypoLink.parameter = {$archiveTypoLink}
}
Leider sind meine Kenntnisse so weit nicht fortgeschritten das ich den Code-Schnipsel hier finden würde.
Hat jemande einen Tip für mich ?
Gruss
Musicsurfer