################################################
Lösung am Ende des Thread
################################################
Hallo zusammen,
ich hab ein wenig Probleme.
Ich versuche chgallery mit Cooliris zu nutzen. Das hat auch einwandfrei geklappt. RealURL ist bereits installiert und soweit konfiguriert. Ich erhalte schöne Links, und es rennt wie ich es mir vorstelle.
Jetzt gibt es noch die coole EXT Powermail - ich meine, die beste Art ein Form zu erstellen.
Nach der Installation von Powermail haut es leider nicht mehr mit cooliris hin.
Vor dem Einstatz von Powermail erhalte ich einen RSS Feed im IE, der einen solchen Link anzeigt: http://www.blabla.de/gallerie.html?type=9713&tx_chgallery_pi1...
Nach der installation von Powermail wird ein solcher Link erzeugt:
http://www.blabla.de/gallerie.html?tx_chgallery_pi1%.....
Hier fehlt der Typ 9713. Ich habe Alex (einpraegsam.net) gefragt und einen Bug eröffnet - Alex beschreibt das Problem als "nicht konfiguriertes RealURL".
Darauf hin habe ich 2 Tage weiter gegoogled und das hier entdeckt:
http://forge.typo3.org/issues/show/2238 - das bezieht allerdings auf die Version 2.2.0. Ich habe das in der Version 2.5.0 geprüft, und diesen code vor gefunden - der mit dem im Bug Report überinstimmt, und so auch gelöst sein dürfte:
#############################PHP-Code:function addChgalleryConfig($params, &$pObj) {
return array_merge_recursive($params['config'], array(
'postVarSets' => array(
'_DEFAULT' => array(
'galerie' => array(
array(
'GETvar' => 'tx_chgallery_pi1[pointer]',
),
array(
'GETvar' => 'tx_chgallery_pi1[dir]',
),
array(
'GETvar' => 'tx_chgallery_pi1[single]',
),
array(
'GETvar' => 'tx_chgallery_pi1[ceid]',
),
),
),
),
'fileName' => array (
'index' => array(
'chgallery.rss' => array(
'keyValues' => array (
'type' => 9713,
),
),
),
),
)
);
}
Neue angepasste localconf 16.01.10 13:40
#############################
########################Code:$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array( 'init' => array( 'enableCHashCache' => 1, 'appendMissingSlash' => 'ifNotFile', 'enableUrlDecodeCache' => 1, 'enableUrlEncodeCache' => 1, 'postVarSet_failureMode' => '', ), 'redirects' => array(), 'preVars' => array( array( 'GETvar' => 'no_cache', 'valueMap' => array( 'no_cache' => 1, ), 'noMatch' => 'bypass', ), ), array( 'GETvar' => 'type', 'valueMap' => array( 'cooliris' => '3135' ), 'noMatch' => 'bypass', ), 'fileName' => array ( 'defaultToHTMLsuffixOnPrev' => 1, 'index' => array( //'index.html' => array( // 'keyValues' => array( // ) // ), 'barrierefrei.html' => array( 'keyValues' => array( 'type' => 98, ) ), 'print.html' => array( 'keyValues' => array( 'type' => 94, ) ), 'chgallery.rss' => array( 'keyValues' => array ( 'type' => 9713, ), ), ), ), 'fixedPostVars' => array(), 'postVarSets' => array( '_DEFAULT' => array ( 'index' => array( array( 'GETvar' => '', ), ), 'galerie' => array( array( 'GETvar' => 'tx_gooffotoboek_pi1[srcdir]', ), ), 'fid' => array( array( 'GETvar' => 'tx_gooffotoboek_pi1[fid]', ), ), 'func' => array( array( 'GETvar' => 'tx_gooffotoboek_pi1[func]', ), ), 'article' => array( array( 'GETvar' => 'tx_ttnews[tt_news]', ), array( 'GETvar' => 'tx_ttnews[backPid]', ), ), 'category' => array( array( 'GETvar' => 'tx_ttnews[cat]', ), ), 'bilder' => array( array( 'GETvar' => 'tx_wtgallery_pi1[category]', ), array( 'GETvar' => 'tx_wtgallery_pi1[show]', ), array( 'GETvar' => 'tx_wtgallery_pi1[listpointer]', ), array( 'GETvar' => 'tx_wtgallery_pi1[categorypointer]', ), ), 'galerie' => array( array( 'GETvar' => 'tx_chgallery_pi1[pointer]', ), array( 'GETvar' => 'tx_chgallery_pi1[dir]', ), array( 'GETvar' => 'tx_chgallery_pi1[single]', ), array( 'GETvar' => 'tx_chgallery_pi1[ceid]', ), ), // 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 anMd 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[backPid]', ), array( 'GETvar' => 'tx_ttnews[swords]', ), ), 'neste' => array( array( 'GETvar' => 'tx_ttnews[pointer]', ), ), ), ), 'pagePath' => array( 'type' => 'user', 'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main', 'spaceCharacter' => '-', 'languageGetVar' => 'L', 'expireDays' => 0, 'rootpage_id' => '1', 'firstHitPathCache' => 1, ), ); // ENDE REAL URL
Das Ergebnis der Änderung ist, das der link sich jetzt auch ausdeutscht:
"gallerie/galerie////25/chgallery.rss"
und mit Powermail:
"gallerie/galerie////25.html"
Liegt das noch an RealURL?
################################################
Aus dem code Schnipsel des Bug kann man den typ entnehmen, der mir jetzt abgeht - aber ich kapier ein fach net wie ich den hier einfügen muss....
Ich bin nicht wirklich ein crack was diese Dinge angeht....
Vielen Dank für Eure Hilfe vorweg!
Lg.
Ralf
################################################
Lösung
################################################
Nach dem ich mich noch ein paar Stunden mit google vergnügt habe, habe ich mir auch meine Lösung zusammen gefummelt. Mal angefangen damit, das meine localconf, die hier schon zu sehen ist um tt_news und die Einbindung von chgallery gewachsen ist.
Ich habe einen thread gefunden, der sich auch mit Powermail und RealURL befasst.Hier (realUrl Autoconfig?) - einer hat hier geschrieben er hat die RealURL Autoconfig von Powermail deaktiviert, und schon war es gut.
Das hab ich auch gemacht, und schon war es gut - selbstveständlich wollte ich dann noch wissen, was denn genau für Powermail configuriert wird. Habe noch mal das EXT Doc gelesen und das hier gefunden:
Dann hab ich nen blick in die Datei reingeworfen und hab mir dann meine localconf um diesen Type erweitert.PHP-Code:disablePMRealUrlConfig
Deactivate config for Realurl: Powermail uses an automatic realurlconf array for type=3131. You can disable this feature if you want to use your own configuration or you dont need a realurl configuration. (see ext_localconf.php for configuration details)
0
boolean
Jetzt scheint es zu passen! Hurra!
Danke für alle, die hier mit gegrübelt haben!
Dies ist meine jetzige localconf:
Lg.Code:$TYPO3_CONF_VARS['FE']['addRootLineFields'].= ',tx_realurl_pathsegment'; $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array( 'init' => array( 'enableCHashCache' => 1, 'appendMissingSlash' => 'ifNotFile', 'enableUrlDecodeCache' => 1, 'enableUrlEncodeCache' => 1, 'postVarSet_failureMode' => '', ), 'redirects' => array(), 'preVars' => array( array( 'GETvar' => 'no_cache', 'valueMap' => array( 'no_cache' => 1, ), 'noMatch' => 'bypass', ), ), array( 'GETvar' => 'type', 'valueMap' => array( 'cooliris' => '3135', 'validation' => '3131' ), 'noMatch' => 'bypass', ), 'fileName' => array ( 'defaultToHTMLsuffixOnPrev' => 1, 'index' => array( //'index.html' => array( // 'keyValues' => array( // ) // ), 'barrierefrei.html' => array( 'keyValues' => array( 'type' => 98, ) ), 'print.html' => array( 'keyValues' => array( 'type' => 94, ) ), 'chgallery.rss' => array( 'keyValues' => array ( 'type' => 9713, ), ), ), ), 'fixedPostVars' => array(), 'postVarSets' => array( '_DEFAULT' => array ( 'index' => array( array( 'GETvar' => '', ), ), 'galerie' => array( array( 'GETvar' => 'tx_gooffotoboek_pi1[srcdir]', ), ), 'fid' => array( array( 'GETvar' => 'tx_gooffotoboek_pi1[fid]', ), ), 'func' => array( array( 'GETvar' => 'tx_gooffotoboek_pi1[func]', ), ), 'article' => array( array( 'GETvar' => 'tx_ttnews[tt_news]', ), array( 'GETvar' => 'tx_ttnews[backPid]', ), ), 'category' => array( array( 'GETvar' => 'tx_ttnews[cat]', ), ), 'bilder' => array( array( 'GETvar' => 'tx_wtgallery_pi1[category]', ), array( 'GETvar' => 'tx_wtgallery_pi1[show]', ), array( 'GETvar' => 'tx_wtgallery_pi1[listpointer]', ), array( 'GETvar' => 'tx_wtgallery_pi1[categorypointer]', ), ), 'galerie' => array( array( 'GETvar' => 'tx_chgallery_pi1[pointer]', ), array( 'GETvar' => 'tx_chgallery_pi1[dir]', ), array( 'GETvar' => 'tx_chgallery_pi1[single]', ), array( 'GETvar' => 'tx_chgallery_pi1[ceid]', ), ), // 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 anMd 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[backPid]', ), array( 'GETvar' => 'tx_ttnews[swords]', ), ), 'neste' => array( array( 'GETvar' => 'tx_ttnews[pointer]', ), ), ), ), 'pagePath' => array( 'type' => 'user', 'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main', 'spaceCharacter' => '-', 'languageGetVar' => 'L', 'expireDays' => 0, 'rootpage_id' => '1', 'firstHitPathCache' => 1, ), ); // ENDE REAL URL
Ralf
###############################################
Geändert von rari2003 (16.01.2010 um 20:51 Uhr)
Super Beitrag, danke!
Ich hatte ein ähnliches Problem.... RealURL und Powermail scheint eine gefährliche Mischen zu sein
Ich wollte einen Link zu meiner Druckversion erstellen und der hat immer den type Parameter gefressen....
# Link zur Druckversion
lib.druckversion = TEXT
lib.druckversion {
value = Print
typolink{
parameter = {page:uid},98 _blank
parameter.insertData = 1
useCacheHash = 1
addQueryString = 1
addQueryString.method = GET
addQueryString.exclude = id
}
}
Powermail wertet type schon in preVars aus, was wahrscheinlich dazu führt das im Abschnitt fileName der RealURL Conf type nicht mehr ausgewertet wird.
Wie oben schon beschrieben im Extensionmanger bei Powermail -> Deactivate config for Realurl den Hacken setzten und speichern... Anpassungen für Powermail müssen dann halt selber in der RealURL Conf vorgenommen werden...
Grüße
ByteKiller
Aktive Benutzer in diesem Thema: 2 (Registrierte Benutzer: 0, Gäste: 2)
Lesezeichen