Ergebnis 1 bis 2 von 2

Thema: RealURL config für type 9713 der chgallery + Powermail 3131

      
  1. #1
    Forum Aktivist
    Registriert seit
    16.11.2007
    Alter
    36
    Beiträge
    85

    Daumen hoch RealURL config für type 9713 der chgallery + Powermail 3131

    ################################################
    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:
    PHP-Code:
    disablePMRealUrlConfig
    Deactivate config 
    for RealurlPowermail 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 
    Dann hab ich nen blick in die Datei reingeworfen und hab mir dann meine localconf um diesen Type erweitert.
    Jetzt scheint es zu passen! Hurra!

    Danke für alle, die hier mit gegrübelt haben!
    Dies ist meine jetzige localconf:
    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
    Lg.
    Ralf
    ###############################################
    Geändert von rari2003 (16.01.2010 um 20:51 Uhr)

  2. #2
    Forum Zuschauer
    Registriert seit
    03.04.2010
    Beiträge
    6
    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

Aktive Benutzer

Aktive Benutzer in diesem Thema: 2 (Registrierte Benutzer: 0, Gäste: 2)

Facebook Kommentare

Ähnliche Themen

  1. realurl RSS-Feed
    Von eleatweb im Forum Suchmaschinenfreundliche URLs (SEO)
    Antworten: 0
    Letzter Beitrag: 21.11.2009, 21:36
  2. chgallery dir Beschreibung mit realurl
    Von klodeckl im Forum Suchmaschinenfreundliche URLs (SEO)
    Antworten: 0
    Letzter Beitrag: 21.09.2009, 12:11
  3. RealURL und mehrere Domains
    Von Annika im Forum TYPO3 4.x Fragen und Probleme
    Antworten: 3
    Letzter Beitrag: 08.09.2009, 07:49
  4. RealURL, mehrere Domains und ich steh vor ner Wand
    Von Motzi im Forum Suchmaschinenfreundliche URLs (SEO)
    Antworten: 2
    Letzter Beitrag: 25.08.2009, 07:47
  5. Realurl /en/fileadmin im Pfad
    Von Manu206 im Forum Suchmaschinenfreundliche URLs (SEO)
    Antworten: 0
    Letzter Beitrag: 15.08.2007, 14:36

Stichworte

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238