Ich habe realurl eine autoconf erzeugen lassen, dann habe ich automatic configuration ausgeschaltet,
weil die realurl_conf.php erweitert werden muss. Im konrekten Fall um die Parameter für sr_sendcard.
Allerdings funktioniert nichts! Ohne meine Zusatzeinträge sieht es so aus:
'mein-server.de' => array (
'init' => array (
'enableCHashCache' => true,
'appendMissingSlash' => 'ifNotFile,redirect',
'adminJumpToBackend' => true,
'enableUrlDecodeCache' => true,
'enableUrlEncodeCache' => true,
'emptyUrlReturnValue' => '/',
),
'pagePath' => array (
'type' => 'user',
'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '-',
'languageGetVar' => 'L',
'rootpage_id' => '1',
),
'fileName' => array (
'defaultToHTMLsuffixOnPrev' => 0,
'acceptHTMLsuffix' => 1,
'index' =>
array (
'print' =>
array (
'keyValues' =>
array (
'type' => 98,
),
),
),
),
'preVars' => array(
array(
'GETvar' => 'no_cache',
'valueMap' => array(
'no_cache' => 1,
),
'noMatch' => 'bypass',
),
),
),
Das Problem: es werden alle GET-Parameter ignoriert. Man kommt nicht auf die Detailansicht.
Link sieht dann z.B. so aus:
http://mein-server.de/e-cards-ansichtskarte/?tx_srsendcard_pi1%5Bcmd%5D=prompt&tx_srsendcard_pi1%5Bcard_caption%5D=6%20Titel&tx_srsendcard_pi1%5BcardaltText%5D=Sonstwas%201&tx_srsendcard_pi1%5Bcard_image%5D=bild.jpg&tx_srsendcard_pi1%5Bcard_image_path%5D=uploads%2Ftx_srsendcard%2F&tx_srsendcard_pi1%5Bimage_width%5D=250&tx_srsendcard_pi1%5Bimage_height%5D=333&tx_srsendcard_pi1%5Bselection_image%5D=&tx_srsendcard_pi1%5Bselection_image_width%5D=0&tx_srsendcard_pi1%5Bselection_image_height%5D=0&tx_srsendcard_pi1%5Bselection_imagealtText%5D=
Füge ich dann die postVarSets hinzu:
'postVarSets' => array(
'_DEFAULT' => array(
// ecard
'ecard' => array(
array(
'GETvar' => 'tx_srsendcard_pi1[cmd]',
),
array(
'GETvar' => 'tx_srsendcard_pi1[card_caption]',
),
array(
'GETvar' => 'tx_srsendcard_pi1[cardaltText]',
),
array(
'GETvar' => 'tx_srsendcard_pi1[card_image]',
),
array(
'GETvar' => 'tx_srsendcard_pi1[card_image_path]',
),
array(
'GETvar' => 'tx_srsendcard_pi1[image_width]',
),
array(
'GETvar' => 'tx_srsendcard_pi1[image_height]',
),
),
funktioniert wieder gar nichts. Es kommt nur die Meldung "page not found!", obwohl der Link OK aussieht:
http://mein-server.de/e-cards-ansichtskarte/ecard/prompt/5%20Titel/Sonstwas%204/bild.jpg/uploads%2Ftx_srsendcard%2F/250/333/?tx_srsendcard_pi1%5Bselection_image%5D=&tx_srsendcard_pi1%5Bselection_image_width%5D=0&tx_srsendcard_pi1%5Bselection_image_height%5D=0&tx_srsendcard_pi1%5Bselection_imagealtText%5D=
Was stimmt also nicht?