[Typo3] RealURL and Address Directory

Jogvan Olsen jo at atlanticvideo.dk
Tue Mar 8 20:22:54 CET 2005


Thanks to Ralf Kossmehl for giving me the solution.



Here is the code:





TS SETUP:
---------------------------
config{
simulateStaticDocuments = 0
   baseURL = 1
   tx_realurl_enable = 1
   prefixLocalAnchors = all
}
----------------------------







.htaccess
---------------------------
RewriteEngine On
RewriteRule ^typo3$ - [L]
RewriteRule ^typo3/.*$ - [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule (\.html|/)$ /index.php
---------------------------






localconf.php
---------------------------
// Config RealUrl Start
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tstemplate.php']['linkData-PostProc'][] 
= 'EXT:realurl/class.tx_realurl.php:&tx_realurl->encodeSpURL';
$TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['checkAlternativeIdMethods-PostProc'][] 
= 'EXT:realurl/class.tx_realurl.php:&tx_realurl->decodeSpURL';
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCache_additionalTables']['tx_realurl_urlencodecache'] 
= 'tx_realurl_urlencodecache';
$TYPO3_CONF_VARS['FE']["realurl"]["langCodes"] = array(); // disable a 
language-prexix in the URL
$TYPO3_CONF_VARS['FE']['addRootLineFields'].= 
',tx_realurl_pathsegment,alias,nav_title,title';
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
    'init' => array(
        'enableCHashCache' => 1,
 'postVarSet_failureMode' => 'ignore'
    ),
    'preVars' => array(
        array(
            'GETvar' => 'no_cache',
            'valueMap' => array(
                'no_cache' => 1,
            ),
            'noMatch' => 'bypass',
        ),
    array(
        'GETvar' => 'L',
        'valueMap' => array(
            'no' => '1',
        ),
        'noMatch' => 'bypass',
        ),
    ),
    'fileName' => array (
           'index' => array(
               'page.html' => array(
                   'keyValues' => array (
                       'type' => 1,
                   )
               ),

             '_DEFAULT' => array(
                'keyValues' => array(
                 )
             ),
         ),
     ),


    'postVarSets' => array(
        '_DEFAULT' => array (
            'article' => array(
                array(
                    'GETvar' => 'tx_ttnews[tt_news]',
                ),
                array(
                    'GETvar' => 'tx_ttnews[backPid]',
                ),
            ),
     'category' => array(
      array(
   'GETVar' => 'tx_ttnews[cat]',
  ),
     ),
     'p' => 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' => 3,
 'rootpage_id' => 3 //change this to meet your needs
    ),
);
// Config RealUrl end
---------------------------



/Jogvan




"Jogvan Olsen" <jo at atlanticvideo.dk> wrote in message 
news:mailman.1.1108584407.16303.typo3-english at lists.netfielders.de...
> I'm using RealURL and it is working fine, except from the pages where I 
> have Address Directory (sp_directory version 0.2.10) installed.
>
> When I use the Address Directory dropdown menu for ZIP or CATEGORY, I get 
> this error message:
>
> Error!
> Error. Reason: Segment "title of page" was not
> a keyword for a postVarSet as expected!
>
> Does anyone know how to fix this problem?
>
>
> Thanks
> Jogvan
>
> 





More information about the TYPO3-english mailing list