English
Português
TYPO3 Programador
Você está aqui:
 www.freedomson.com  / Produtos & Serviços / TYPO3 Sites + Domínios & Email / TYPO3 Programador

Developer Faq's

Mostrar Todas / Esconder Todas

Agrupar Faq

EXT:realurl - Multilang Simple Setup ( ext:commerce )

Fonts:
www.medienprofiler.net/page_has_INTincScript.138.0.html

localconf.php

$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(

    'init' => array(
        'enableCHashCache' => true,
        'appendMissingSlash' => 'ifNotFile',
        'enableUrlDecodeCache' => true,
        'enableUrlDecodeCache' => true,
        'emptyUrlReturnValue' => '/',
    ),

    'pagePath' => array(
        'type' => 'user',
        'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
        'spaceCharacter' => '-',
        'languageGetVar' => 'L',
        'expireDays' => 300,
        'excludePageIds' => '128,130',
        'rootpage_id'=>128,
        'segTitleFieldList'=>'tx_realurl_pathsegment,alias,nav_title,title',
        'autoUpdatePathCache' => 1,
    ),

    'preVars' => array(
        array(
            'GETvar' => 'L',
            'valueMap' => array(
                'pt' => '2',
                'en' => '0'
            ),
            'valueDefault' => 'pt',
        ),
    ),


    'fixedPostVars' => array(
       '_DEFAULT' => array(

         array(
           'GETvar' => 'tx_commerce_pi1[catUid]',
           'lookUpTable' => array(
               'table' => 'tx_commerce_categories',
               'id_field' => 'uid',
               'alias_field' => 'title',
               'addWhereClause' => ' AND NOT deleted',
               'useUniqueCache' => 1,
               'useUniqueCache_conf' => array(
                   'strtolower' => 1,
                   'spaceCharacter' => '-',
               ),
            'languageGetVar' => 'L',
            'languageExceptionUids' => '',
            'languageField' => 'sys_language_uid',
            'transOrigPointerField' => 'l18n_parent'
           ),
       ),
       array(
           'GETvar' => 'tx_commerce_pi1[showUid]',
           'lookUpTable' => array(
               'table' => 'tx_commerce_products',
               'id_field' => 'uid',
               'alias_field' => 'title',
               'addWhereClause' => ' AND NOT deleted',
               'useUniqueCache' => 1,
               'useUniqueCache_conf' => array(
                       'strtolower' => 1,
                       'spaceCharacter' => '-',
               ),
            'languageGetVar' => 'L',
            'languageExceptionUids' => '',
            'languageField' => 'sys_language_uid',
            'transOrigPointerField' => 'l18n_parent'
           )
       )


       ),

    ),



    'postVarSets' => array(

       '45' => array(

          array(
          'GETvar' => 'cHash',
          ),
       ),

    ),

 'fileName' => array (

        'index' => array(

            'index.html' => array(

                'keyValues' => array(

                )

            ),

        ),

    ),

);

// Default Portuguese
$_GET['L'] = 2;

if (preg_match( '/\/en\//', $_SERVER["HTTP_HOST"] ) ) {
     $_GET['L'] = 0;
}

Categoria: Typo3 Typoscript
Especialista: Philip Almeida (support.freedomson.com)
Agrupar Faq

Typoscript conditional display based on pi_vars

  20 = COA
20 {
10 = TEXT
10.value = &tx_svdgbseminar_pi1[theme]=
20 = TEXT
20.data = GPvar : tx_svdgbseminar_pi1 | theme
if {
isTrue.data = GPvar : tx_svdgbseminar_pi1 | theme
}
}
Categoria: Typo3 Typoscript
Especialista: Philip Almeida (support.freedomson.com)

(c) 2008-2012 freedomson.com  "free software for free people"

HOSTED BY
Hosted by netzhaut.de