[TYPO3-UG Freiburg] RealUrl vs. CoolUri

Mikel lists at con-version.com
Wed Nov 26 08:49:17 CET 2014


Hey Steffen,

sieht interessant aus. Ich werde das bei Gelegenheit mal testen. 
Mittlerweile läuft das nun mit CoolUri. Einer Rückkehr zu RealUrl bin 
ich allerdings nicht abgeneigt, da auch CoolUri Nachteile mit sich bringt.

Hast Du nicht einfach Lust, Anfang Januar zu uns dazu zu stoßen? Wir 
dürften das doch in 1-2 Stunden durchhaben...

Mikel

Am 25.11.14 23:49, schrieb Steffen Müller:
> Hi.
>
> Am 20.11.2014 um 12:02 schrieb Mikel:
>> Action 1 -->
>> domain.xy/index.php?id=24&tx_extname_pluginname[year]=2010&tx_extname_pluginname[action]=list&tx_extname_pluginname[controller]=ModelName
>>
>> Action 2 -->
>> domain.xy/index.php?id=24&tx_extname_pluginname[ModelName]=4&tx_extname_pluginname[action]=show&tx_extname_pluginname[controller]=ModelName&cHash=0149de7f00fac9921b95f9c8c1300b44
>>
>> Action 3 -->
>> domain.xy/index.php?id=24&tx_extname_pluginname[file]=121&tx_extname_pluginname[ModelName]=4&tx_extname_pluginname[action]=downloadDocument&tx_extname_pluginname[controller]=PressRelease&cHash=838076fbc461129a496b19dd70c73799
>>
>>
>> Ziel:
>> Action 1 --> domain.xy/pfad-zur-seite-mit-plugin/2010
>> Action 2 --> domain.xy/pfad-zur-seite-mit-plugin/pfad-zur-news (kann
>> auch domain.xy/pfad-zur-seite-mit-plugin/2010/pfad-zur-news sein)
>> Action 3 -->
>> domain.xy/pfad-zur-seite-mit-plugin/pfad-zur-news/download/uid-der-datei
> Die Lösung ist einfacher, wenn nicht alle Plugins auf einer Seite
> wegelagern, so wenig plugins wie möglich auf einer Seite.
>
> Action 1:
>
> 'fixedPostVars' => array(
>    '24' => array(
>      array(
>        'GETvar' => 'tx_extname_pluginname[action]',
>        'noMatch' => 'bypass',
>      ),
>      array(
>        'GETvar' => 'tx_extname_pluginname[controller]',
>        'noMatch' => 'bypass',
>      ),
>      array(
>        'GETvar' => 'tx_extname_pluginname[year]',
>      ),
>    ),
> ),
>
> Action 2 (unterstützt auch Mehrsprachigkeit):
>
> 'fixedPostVars' => array(
>    '124' => array(
>      array(
>        'GETvar' => 'tx_extname_pluginname[controller]',
>        'noMatch' => 'bypass',
>      ),
>      array(
>        'GETvar' => 'tx_extname_pluginname[action]',
>        'noMatch' => 'bypass',
>      ),
>      array(
>        'GETvar' => 'tx_extname_pluginname[ModelName]',
>        'lookUpTable' => array(
>          'table' => 'tx_extname_domain_model_news',
>          'id_field' => 'uid',
>          'alias_field' => 'title',
>          'addWhereClause' => ' AND NOT deleted',
>          'useUniqueCache' => 1,
>          'useUniqueCache_conf' => array(
>            'strtolower' => 1,
>            'spaceCharacter' => '-'
>          ),
>          'enable404forInvalidAlias' => true,
>          'languageGetVar' => 'L',
>          'languageExceptionUids' => '',
>          'languageField' => 'sys_language_uid',
>          'transOrigPointerField' => 'l10n_parent',
>          'autoUpdate' => 1,
>          'expireDays' => 180,
>        ),
>      ),
>    ),
> ),
>
> Action 3:
>
> 'fixedPostVars' => array(
>    '224' => array(
>      array(
>        'GETvar' => 'tx_extname_pluginname[controller]',
>        'noMatch' => 'bypass',
>      ),
>      array(
>        'GETvar' => 'tx_extname_pluginname[ModelName]',
>        'lookUpTable' => array(
>          'table' => 'tx_extname_domain_model_news',
>          'id_field' => 'uid',
>          'alias_field' => 'title',
>          'addWhereClause' => ' AND NOT deleted',
>          'useUniqueCache' => 1,
>          'useUniqueCache_conf' => array(
>            'strtolower' => 1,
>            'spaceCharacter' => '-'
>          ),
>          'enable404forInvalidAlias' => true,
>          'languageGetVar' => 'L',
>          'languageExceptionUids' => '',
>          'languageField' => 'sys_language_uid',
>          'transOrigPointerField' => 'l10n_parent',
>          'autoUpdate' => 1,
>          'expireDays' => 180,
>        ),
>      ),
>      array(
>        'GETvar' => 'tx_extname_pluginname[action]',
>        'valueMap' => array(
>          'download' => 'downloadDocument'
>        ),
>      ),
>      array(
>        'GETvar' => 'tx_extname_pluginname[file]',
>      ),
>    ),
> ),
>
>
> Disclaimer: Alle snippets in der Form ungetestet.
>



More information about the TYPO3-UG-Freiburg mailing list