Zum Inhalt springen

realurl

Erstellt am 11. März 2009 · 5 Antworten · letzte Antwort am 11. März 2009

Tags: Frage

lordrob ·

kann mir mal jemand auf die sprünge helfen? suche vielleicht auch am falschen ort...

ich habe realurl installiert. funktioniert aber nur ein ansatz: und zwar wandelt realurl die "index.php?id=xx" in die pid-nr. um. ich möchte aber sprechende urls.

in der .htaccess habe ich folgendes stehen:

RewriteEngine On
RewriteRule ^typo3$ - [L]
RewriteRule ^typo3/.*$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php

unter typo3conf/realurl_conf.php, welches über die extension in die localconf.php eingebunden wird (oder werden sollte...) ist das:

<?php
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
'init' => array(
		'useCHashCache' => '0',
    'enableCHashCache' => 1,
		'respectSimulateStaticURLs' => 'TRUE',
		'appendMissingSlash' => 'ifNotFile',
		'enableUrlDecodeCache' => '1',
		'enableUrlEncodeCache' => '1',
	),

'www.meine_url.ch' => array(
    'pagePath' => array(
        'type' => 'user',
        'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
        'rootpage_id' => 184,
        'spaceCharacter' => '-',
        'languageGetVar' => 'L',
        'expireDays' => 3,
        'disablePathCache' => true,
    ),

    // Give url's like /jobs/detail/programmer, and respect localization!
    'postVarSets' => array(
        '_DEFAULT' => array(
            'detail' => array(
                array(
                    'GETvar' => 'tx_dmmjobcontrol_pi1[job_uid]',
                    'lookUpTable' => array(
                        'table' => 'tx_dmmjobcontrol_job',
                        'id_field' => 'uid',
                        'alias_field' => 'job_title',
                        'addWhereClause' => ' AND NOT deleted',
                        'useUniqueCache' => 1,
                        'useUniqueCache_conf' => array(
                            'strtolower' => 1,
                            'spaceCharacter' => '-',
                        ),
                        'languageGetVar' => 'L',
                        'languageExceptionUids' => '',
                        'languageField' => 'sys_language_uid',
                        'transOrigPointerField' => 'l18n_parent'
                    ),
                ),
            ),
            // Give url's like jobs/page/3 for use with the page-browser
            'page' => array(
                array(
                    'GETvar' => 'tx_dmmjobcontrol_pi1[page]',
                ),
            ),
        ),
    ),
    'init' => array(
        'appendMissingSlash' => 'ifNotFile',
        'enableUrlDecodeCache' => 1,
        'enableUrlEncodeCache' => 1,
    ),
),
);
?>

und im typoscript steht das:

config.simulateStaticDocuments = 0
config.baseURL = http://www.meine_url.ch/
config.tx_realurl_enable = 1
#config.prefixLocalAnchors = all
#config.uniqueLinkVars = 1
#config.linkVars = L
#config.defaultToHTMLsuffixOnPrev = 1

und trotzdem sehen die links nur so aus:
http://www.meine_url.ch/123/

warum?? wo muss ich ansetzen?

comix ·

Hi lordrob

hatte gestern mit dem selben Problem zu kämpfen folgende Extension hat mir weitergeholfen:

http://typo3.org/extensions/repository/view/danp_realurlconfigurator/current/

meine RealUrl Konfiguration sieht nun so aus:

$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:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
            'spaceCharacter' => '-',
            'languageGetVar' => 'L',
            'expireDays' => 7,
            'rootpage_id' => 1,
        ),


      'postVarSets' => array(
            '_DEFAULT' => array(
            	// wt_directory
            	'adressen' => array(
					array(
						'GETvar' => 'tx_wtdirectory_pi1[show]',
						'lookUpTable' => array(
                            'table' => 'tt_address',
                            'id_field' => 'uid',
                            'alias_field' => 'name',
                            'addWhereClause' => ' AND NOT deleted',
                            'useUniqueCache' => 1,
                            'useUniqueCache_conf' => array(
                                'strtolower' => 1,
                                'spaceCharacter' => '-',
                                ),
                            ),
					),
					array(
						'GETvar' => 'tx_wtdirectory_pi1[catfilter]',
					),
					array(
						'GETvar' => 'tx_wtdirectory_pi1[filter][name]',
					),
				),

                // 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,
                    ),
                ),
            ),
        ),
 );

Sorry ist bisschen übel formatiert.

lordrob ·

hey super!
hat soweit geklappt, dass die links jetzt so aussehen, wie ich sie will!
nur wenn ich einen davon anklicke führt mich das dummerweise immer auf die startseite...
hattest du das auch?

comix ·

ja hatte ich auch

Falls du mein gepostetes Skript übernommen hast kontrollier bei dir mal die

'rootpage_id' => 1,

in deinem Scipt hast du diese gehabt 'rootpage_id' => 184,