Hallo Christian,
PostVarSets enthält am Ende das Wort Sets. Es fehlt die Array-Ebene, die
das Set definiert.
Die Dokumentation ist hilfreich.
https://github.com/dmitryd/typo3-realurl/wiki/Configuration-reference#postvarsets
Weiterhin kann man auch folgendes lesen
http://www.dmitry-dulepov.com/2008/05/realurl-made-easy-part-1.html
http://www.dmitry-dulepov.com/2008/06/realurl-made-easy-part-2.html
Dieter
Am 09.06.2017 um 13:24 schrieb Christian Baer:
Hallo Zusammen,
leider habe ich aktuell ein Problem damit, RealURL richtig zu
konfigurieren.
Konkret geht es um die Parameter in den postVarSets.
Ich habe mir die realurl-Configuration von RealURL automatisch
erstellen lassen und diese dann entsprechend erweitert mit den
postVarSets.
Hatte ich schon bei anderen Installationen, hat bisher auch
funktioniert. Beim Vergleich mit funktionierenden Konfiguration ist
mir nichts aufgefallen was sich in dem Teil unterscheidet, soweit
passt das alles auch zum RealURL-Doku.
Vielleicht kann mir ja einer sagen, wo das Problem liegen könnte...
Hier die realurl_conf.php:[code language=php]
<?php
$GLOBALS ['TYPO3_CONF_VARS'] ['EXTCONF'] ['realurl'] = array (
'_DEFAULT' => array (
'init' => array (
'appendMissingSlash' => 'ifNotFile,redirect',
'emptyUrlReturnValue' => '/',
'enableCHashCache' => true,
'enableUrlDecodeCache' => true,
'enableUrlEncodeCache' => true, ),
'pagePath' => array (),
'fileName' => array (
'defaultToHTMLsuffixOnPrev' => 0,
'acceptHTMLsuffix' => 0,
'index' => array (
'print' => array (
'keyValues' => array (
'type' => 98 )
) ) ),
'postVarSets' => array (
'_DEFAULT' => array(
'action' => array(
'GETvar' => 'myparam[action]'
),
'id'=>array(
'GETvar' => 'myparam[param][ID]'
),
'module'=>array(
'GETvar' => 'myparam[param][module]'
),
'range'=>array(
'GETvar' => 'myparam[param][range]'
)
)
) ) );
[/code]
Im Code wird die URL entsprechend mit [code language=php]
$this->cObj->stdWrap_typolink( '',
array(
'typolink.' => array(
'parameter' => 15,
'additionalParams' => '&myparam[action]=list',
'useCacheHash' => true,
'returnLast' => 'url'
)
)
);
[/code]
in URLs umgewandelt ( auch schon in Typoscript getestet, macht leider
keinen Unterschied ).
Trotzdem werden die Parameter nicht mit RealURL umgesetzt, die
Seiten-Id aber schon, d.h. RealURL funktioniert generell.
Habe ich denn etwas essentielles übersehen?
URLs währen z.b.:
http://dev-cloud.eosserver.daun-systems.loc/partslist/?myparam[action]=list&cHash=d70f777fb8b7d3c52c905f29d3276295
http://dev-cloud.eosserver.daun-systems.loc/partslist/?myparam[action]=details&myparam[param][ID]=24512&cHash=31bbc756e1cd9edcbca86b5a68d9480c
P.S.: Sorry für die grottige Darstellung, habe leider keine
Formatierungsoptionen gefunden
_______________________________________________
TYPO3-german mailing list
TYPO3-german@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german
--
----
Dr. Dieter Porth - Web-Entwickler
_______________________________________________
TYPO3-german mailing list
TYPO3-german@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german