[TYPO3-english] Realurl - Scandinavian characters and SB portfolio

Jogvan Olsen jo at atlanticvideo.dk
Tue Jul 12 11:56:15 CEST 2011


Hi List

I have a little problem for SB Portfolio. I have adapted the Realurl 
setup from the manual to site - and it works perfect except from one thing.

The 'tag' ('GETvar' => 'tx_sbportfolio_pi1[tag]'):

- The Scandinavian characters (ÆØÅæøå) are not converted to their ASCII 
equivalents
- Spaces are not converted to space character '-'
- Is not converted to lowercase.

ex.
My url look like this:
http://my-domain.dk/eksempler/tag/Jubilæumsskrift 2010/

I want them to look like this:
http://my-domain.dk/eksempler/tag/jubilaeumsskrift-2010/



All other parts of the url are converted  to nice looking lowercase 
ASCII characters, with '-' as space-character.

I have pasted my realurs setting below - Can anyone see what I am 
missing, and give me some advice?





Thanks in advance
Jogvan Olsen



My site runs:
TYPO3  4.5.3
Realurl 1.11.2
utf-8 ($TYPO3_CONF_VARS['BE']['forceCharset'] = 'utf-8';)


In TS setup:
# RealUrl
config.simulateStaticDocuments = 0
config.baseURL = http://my-domain.dk/
config.tx_realurl_enable = 1
config.uniqueLinkVars = 1
config.linkVars = L
config.defaultToHTMLsuffixOnPrev = 1


<?php

//------------------------ Start RealUrl -------------------------

$tx_realurl_config = array(
     'init' => array(
         'enableCHashCache' => true,
         'appendMissingSlash' => 'ifNotFile',

         'enableUrlDecodeCache' => true,
        'emptyUrlReturnValue' => '/',
     ),
     'preVars' => array(
     ),
     'postVarSets' => array(
         '_DEFAULT' => array(

                 // 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 and 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[swords]',
                         ),
                     ),
         ),
      ),

      // sb portfolio start


      'postVarSets' => array(
           '_DEFAULT' => array(
              'item' => array (
           array (
             'GETvar' => 'tx_sbportfolio_pi1[uid]',
             'lookUpTable' => array (
               'table' => 'tx_sbportfolio_items',
               'id_field' => 'uid',
               'alias_field' => 'title',
               'addWhereClause' => ' AND NOT deleted AND NOT hidden',
               'useUniqueCache' => 1,
               'useUniqueCache_conf' => array (
                 'strtolower' => 1,
                 'spaceCharacter' => '-',
               ),
             ),
             'noMatch' => 'bypass',
           ),
         ),
           'kategori' => array (
           array (
             'GETvar' => 'tx_sbportfolio_pi1[cat]',
             'lookUpTable' => array (
               'table' => 'tx_sbportfolio_categories',
               'id_field' => 'uid',
               'alias_field' => 'title',
               'addWhereClause' => ' AND NOT deleted AND NOT hidden',
               'useUniqueCache' => 1,
               'useUniqueCache_conf' => array (
                 'strtolower' => 1,
                 'spaceCharacter' => '-',
               ),
             ),
           ),
         ),
         'kunder' => array (
           array (
             'GETvar' => 'tx_sbportfolio_pi1[clients]',
             'lookUpTable' => array (
               'table' => 'tx_sbportfolio_clients',
               'id_field' => 'uid',
               'alias_field' => 'title',
               'addWhereClause' => ' AND NOT deleted AND NOT hidden',
               'useUniqueCache' => 1,
               'useUniqueCache_conf' => array (
                 'strtolower' => 1,
                 'spaceCharacter' => '-',
               ),
             ),
           ),
         ),
		'kunde' => array (
           array (
             'GETvar' => 'tx_sbportfolio_pi1[client]',
             'lookUpTable' => array (
               'table' => 'tx_sbportfolio_clients',
               'id_field' => 'uid',
               'alias_field' => 'title',
               'addWhereClause' => ' AND NOT deleted AND NOT hidden',
               'useUniqueCache' => 1,
               'useUniqueCache_conf' => array (
                 'strtolower' => 1,
                 'spaceCharacter' => '-',
               ),
             ),
           ),
         ),

		'side' => array (
           array (
             'GETvar' => 'tx_sbportfolio_pi1[sbpage]',
             'lookUpTable' => array (
               'table' => 'tx_sbportfolio_items',
               'id_field' => 'uid',
               'alias_field' => 'title',
               'addWhereClause' => ' AND NOT deleted AND NOT hidden',
               'useUniqueCache' => 1,
               'useUniqueCache_conf' => array (
                 'strtolower' => 1,
                 'spaceCharacter' => '-',
               ),
             ),
           ),
         ),
         'tag' => array (            <<<<<<<<<<<<<  HERE IS MY PROBLEM
          array (
          	'GETvar' => 'tx_sbportfolio_pi1[tag]',            		
          	 ),
			),
          ),
       ),
       'fixedPostVars' => array(
        '5' => array (
           array (
             'GETvar' => 'tx_sbportfolio_pi1[uid]',
             'lookUpTable' => array (
               'table' => 'tx_sbportfolio_items',
               'id_field' => 'uid',
               'alias_field' => 'title',
               'addWhereClause' => ' AND NOT deleted AND NOT hidden',
               'useUniqueCache' => 1,
               'useUniqueCache_conf' => array (
                 'strtolower' => 1,
                 'spaceCharacter' => '-',
               ),
             ),
           ),
         ),
       ),



      // sb portfolio end


     'pagePath' => array(
         'type' => 'user',
         'userFunc' => 
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
         'spaceCharacter' => '-',
         'languageGetVar' => 'L',
         'expireDays' => 3,
     ),
);

$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
     'www.my-domain.dk' => $tx_realurl_config,
     'my-domain.dk' => 'www.my-domain.dk',

     'www.immanuel.my-domain.dk' => $tx_realurl_config,
     'immanuel.my-domain.dk' => 'www.immanuel.my-domain.dk',

     'www.jool.my-domain.dk' => $tx_realurl_config,
     'jool.my-domain.dk' => 'www.my-domain.dk',

     'www.sub.my-domain.dk' => $tx_realurl_config,
     'sub.my-domain.dk' => 'www.sub.my-domain.dk',
);



$TYPO3_CONF_VARS['EXTCONF']['realurl']['www.my-domain.dk']['pagePath']['rootpage_id'] 
= 3;
$TYPO3_CONF_VARS['EXTCONF']['realurl']['www.immanuel.my-domain.dk']['pagePath']['rootpage_id'] 
= 9;
$TYPO3_CONF_VARS['EXTCONF']['realurl']['www.menuer.my-domain.dk']['pagePath']['rootpage_id'] 
= 34;
$TYPO3_CONF_VARS['EXTCONF']['realurl']['www.jool.my-domain.dk']['pagePath']['rootpage_id'] 
= 74;

unset($tx_realurl_config);

//------------------------ END RealUrl ----------------------------------


?>



More information about the TYPO3-english mailing list