RealURL Konfiguration für pro_industrydb und sk_calendar

Auszug aus der RealURL-Konfiguration in der typo3conf/localconf.php
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
'init' => array(...),
'pagePath' => array(...),
'fileName' => array(...),
'postVarSets' => array(
   '_DEFAULT' => array(
    'industrydb' => array(
      array(
        'GETvar' => 'tx_proindustrydb_pi1[showUid]',
        'lookUpTable' => array(
          'table' => 'tx_proindustrydb_entries',
          'id_field' => 'uid',
          'alias_field' => 'title'
        ),
      ),
    ),
    'calendar' => array(
      array(
        'GETvar' => 'tx_skcalendar_pi1[view]',
      ),
      array(
        'GETvar' => 'tx_skcalendar_pi1[uid]',
      ),
      array(
        'GETvar' => 'tx_skcalendar_pi1[offset]',
      ),
      array(
        'GETvar' =>'tx_skcalendar_pi1[datefrom]',
      ),
      array(
        'GETvar' => 'tx_skcalendar_pi1[dateto]',
      ),
      array(
        'GETvar' => 'tx_skcalendar_pi1[targetgroups]',
        'lookUpTable' => array(
          'table' => 'tx_skcalendar_targetgroup',
          'id_field' => 'uid',
          'alias_field' => 'title'
        ),
        'noMatch' => 'bypass',
      ),
      array(
        'GETvar' => 'tx_skcalendar_pi1[categories]',
        'lookUpTable' => array(
          'table' => 'tx_skcalendar_category',
          'id_field' => 'uid',
          'alias_field' => 'title'
        ),
        'noMatch' => 'bypass',
      ),
      array(
        'GETvar' => 'tx_skcalendar_pi1[locations]',
        'lookUpTable' => array(
          'table' => 'tx_skcalendar_location',
          'id_field' => 'uid',
          'alias_field' => 'title'
        ),
        'noMatch' => 'bypass',
      ),
      array(
        'GETvar' => 'tx_skcalendar_pi1[organizers]',
        'lookUpTable' => array(
          'table' => 'tx_skcalendar_organizer',
          'id_field' => 'uid',
          'alias_field' => 'title'
        ),
        'noMatch' => 'bypass',
      ),
    ),
  ),
),
);

3 Kommentare

  1. Christian

    Vielen Dank, war ein guter Grundaufbau 🙂
    Möchte man für die Detailansicht noch den Titel der Veranstaltung mit in die URL packen, so kann anstatt

    array(
    ‘GETvar’ => ‘tx_skcalendar_pi1[uid]’,
    ),

    folgendes verwendet werden:

    array(
    ‘GETvar’ => ‘tx_skcalendar_pi1[uid]’,
    ‘lookUpTable’ => array(
    ‘table’ => ‘tx_skcalendar_event’,
    ‘id_field’ => ‘uid’,
    ‘alias_field’ => ‘title’,
    ‘maxLength’ => 40,
    ‘useUniqueCache’=> 1,
    ‘useUniqueCache_conf’ => array (
    ‘strtolower’ => 1,
    ‘spaceCharacter’ => ‘-‘,
    ),
    ),
    ),

    Außerdem sind für ein ordentliches Paging noch die beiden Werte (am besten nach dem [offset]) mit aufzunehmen:
    array (
    ‘GETvar’ => ‘tx_skcalendar_pi1[notch]’,
    ),
    array (
    ‘GETvar’ => ‘tx_skcalendar_pi1[sorting]’,
    ),

  2. Christian

    Hallo,
    ich habe noch ein paar Fehler in den Settings behoben und weiter optimiert. Hier also das ganze Array:

    ‘kalender’ => array(
    array(
    ‘GETvar’ => ‘tx_skcalendar_pi1[view]’,
    ),
    array(
    ‘GETvar’ => ‘tx_skcalendar_pi1[uid]’,
    ‘lookUpTable’ => array(
    ‘table’ => ‘tx_skcalendar_event’,
    ‘id_field’ => ‘uid’,
    ‘alias_field’ => ‘title’,
    ‘maxLength’ => 40,
    ‘addWhereClause’=> ‘AND NOT deleted’,
    ‘useUniqueCache’=> 1,
    ‘useUniqueCache_conf’ => array (
    ‘strtolower’ => 1,
    ‘spaceCharacter’ => ‘-‘,
    ),
    ‘valueDefault’ => ‘no’,
    ),
    ),
    array(
    ‘GETvar’ => ‘tx_skcalendar_pi1[offset]’,
    ),
    array (
    ‘GETvar’ => ‘tx_skcalendar_pi1[notch]’,
    ),
    array (
    ‘GETvar’ => ‘tx_skcalendar_pi1[sorting]’,
    ),
    array (
    ‘GETvar’ => ‘tx_skcalendar_pi1[monthfilter]’,
    ),
    array(
    ‘GETvar’ => ‘tx_skcalendar_pi1[category]’,
    ‘lookUpTable’ => array(
    ‘table’ => ‘tx_skcalendar_category’,
    ‘id_field’ => ‘uid’,
    ‘alias_field’ => ‘title’,
    ‘maxLength’ => 40,
    ‘addWhereClause’=> ‘AND NOT deleted’,
    ‘useUniqueCache’=> 1,
    ‘useUniqueCache_conf’ => array (
    ‘strtolower’ => 1,
    ‘spaceCharacter’ => ‘-‘,
    ),
    ),
    ),
    array(
    ‘GETvar’ => ‘tx_skcalendar_pi1[location]’,
    ‘lookUpTable’ => array(
    ‘table’ => ‘tx_skcalendar_location’,
    ‘id_field’ => ‘uid’,
    ‘alias_field’ => ‘title’,
    ‘addWhereClause’=> ‘AND NOT deleted’,
    ‘maxLength’ => 40,
    ‘useUniqueCache’=> 1,
    ‘useUniqueCache_conf’ => array (
    ‘strtolower’ => 1,
    ‘spaceCharacter’ => ‘-‘,
    ),
    ),
    ),
    array(
    ‘GETvar’ => ‘tx_skcalendar_pi1[targetgroup]’,
    ‘lookUpTable’ => array(
    ‘table’ => ‘tx_skcalendar_targetgroup’,
    ‘id_field’ => ‘uid’,
    ‘alias_field’ => ‘title’,
    ‘maxLength’ => 40,
    ‘addWhereClause’=> ‘AND NOT deleted’,
    ‘useUniqueCache’=> 1,
    ‘useUniqueCache_conf’ => array (
    ‘strtolower’ => 1,
    ‘spaceCharacter’ => ‘-‘,
    ),
    ),
    ),
    array(
    ‘GETvar’ => ‘tx_skcalendar_pi1[organizer]’,
    ‘lookUpTable’ => array(
    ‘table’ => ‘tx_skcalendar_organizer’,
    ‘id_field’ => ‘uid’,
    ‘alias_field’ => ‘name’,
    ‘maxLength’ => 40,
    ‘addWhereClause’=> ‘AND NOT deleted’,
    ‘useUniqueCache’=> 1,
    ‘useUniqueCache_conf’ => array (
    ‘strtolower’ => 1,
    ‘spaceCharacter’ => ‘-‘,
    ),
    ),
    ),
    array(
    ‘GETvar’ =>’tx_skcalendar_pi1[datefrom]’,
    ),
    array(
    ‘GETvar’ => ‘tx_skcalendar_pi1[dateto]’,
    ),
    ),