Zum Inhalt springen

realurl zeigt nur in manchen Teilen den "Pfad" richtig an

Erstellt am 10. März 2012 · 6 Antworten · letzte Antwort am 11. März 2012

Tags: RealURL, Frage

denhatkeiner ·

Hallo, habe realurl und realurlconf installiert. Funktioniert auch, nur bekomme ich im Browser nur einen Teil meines Menues in realurl umgewandelt, der andere Teil zeigt immer noch die id an (lunomed.de, bei "Fachärzte" gehts, bei "Hausärzte" nicht. Habe die decode und encode caches alle geleert, hat nix geholfen. Hat da jmd eine Lösung? DANKE

denhatkeiner ·

Hallo Maty, da hab ich nichts geändert.

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

'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,
),
),
),
),
);
php?>

skydivematy ·

Du schreibst, Du hast realurlconf Installiert. Ist das eine Extension? Wenn ja schmeiss die mal raus. Sowas braucht man nicht bei realurl. Die realurl_conf.php im typo3conf Ordner Reinpacken. In der Extension Realurl nicht auf Automatic stellen. Pfad zu realurl_conf.php angeben.

SETUP ROOT

config {
simulateStaticDocuments = 0
baseURL = http://www.deinedomain/
tx_realurl_enable = 1
absRefPrefix =
prefixLocalAnchors = all
typolinkCheckRootline = 1
typolinkEnableLinksAcrossDomains = 1
userPrefixLocalAnchors = all
}

in die localconf.php im typo3conf Ordner einfügen

include(PATH_typo3conf.'realurl_conf.php');

Zeile 22 -> 28

array(
'GETvar' => 'L',
'valueMap' => array(
'en' => '1',
),
'noMatch' => 'bypass',
),

ändern mit

array(
           'GETvar' => 'L',
           'valueMap' => array(
                          '' => '0',
			'de' => '1',
		      //'es' => '2',
		      //'no' => '3',
	      'valueDefault' => 'en',
                               ),
                     'noMatch' => 'bypass',
                        ),

Was ist die Default Language? de? en? Mit Deiner Language dem entsprechent Ändern

und mach mal in der Letzten Zeile deiner realurl_conf.php aus dem PHP?> ein ?>

Wenn Du tt_news nutzen möchtest solltest Du das noch vor dem ?> am Ende der realurl_conf.php einfügen.

// RealURL - valueMap creation for tt-news
for($x=1; $x<=100; $x++) {
    $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']['fixedPostVars']['news'][0]['valueMap'][$x+1] = $x;
}
// NEWS PAGES 
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']['fixedPostVars']['74'] = 'news';

Hier fixedPostVars']['74'] kommt Die ID der Seite wo du ein tt_news Plugin einbaust. (list+single)

Für jede Seite einmal das

$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']['fixedPostVars']['74'] = 'news';

mit der Entsprechenden Seiten ID

gruss
maty

denhatkeiner ·
skydivematy schrieb

Du schreibst, Du hast realurlconf Installiert. Ist das eine Extension? Wenn ja schmeiss die mal raus. Sowas braucht man nicht bei realurl. Die realurl_conf.php im typo3conf Ordner Reinpacken. In der Extension Realurl nicht auf Automatic stellen. Pfad zu realurl_conf.php angeben.

->Hab ich rausgeschmissen und das Häkchen bei automatischer Configuration hatte ich von anfang an draussen

SETUP ROOT

config {
simulateStaticDocuments = 0
baseURL = http://www.deinedomain/
tx_realurl_enable = 1
absRefPrefix =
prefixLocalAnchors = all
typolinkCheckRootline = 1
typolinkEnableLinksAcrossDomains = 1
userPrefixLocalAnchors = all
}

-> Hab ich gemacht

in die localconf.php im typo3conf Ordner einfügen

-> ich glaub das steht schon drin

include(PATH_typo3conf.'realurl_conf.php');

-> meinst Du hier nicht die realurl_conf.php? jedenfalls hab ichs da mal alles so geändert

Zeile 22 -> 28

array(
'GETvar' => 'L',
'valueMap' => array(
'en' => '1',
),
'noMatch' => 'bypass',
),

ändern mit

array(
           'GETvar' => 'L',
           'valueMap' => array(
                          '' => '0',
			'de' => '1',
		      //'es' => '2',
		      //'no' => '3',
	      'valueDefault' => 'en',
                               ),
                     'noMatch' => 'bypass',
                        ),

Was ist die Default Language? de? en? Mit Deiner Language dem entsprechent Ändern

und mach mal in der Letzten Zeile deiner realurl_conf.php aus dem PHP?> ein ?>

Wenn Du tt_news nutzen möchtest solltest Du das noch vor dem ?> am Ende der realurl_conf.php einfügen.

-> Hab ich installiert und benutzt, also auch so geändert

// RealURL - valueMap creation for tt-news
for($x=1; $x<=100; $x++) {
    $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']['fixedPostVars']['news'][0]['valueMap'][$x+1] = $x;
}
// NEWS PAGES 
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']['fixedPostVars']['74'] = 'news';

Hier fixedPostVars']['74'] kommt Die ID der Seite wo du ein tt_news Plugin einbaust. (list+single)

Für jede Seite einmal das

$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']['fixedPostVars']['74'] = 'news';

mit der Entsprechenden Seiten ID

gruss
maty

-> es geht trotzdem nicht bzw eher schlechter als vorher, hast Du noch bissl Geduld?