[TYPO3-calendar] short question realUrl -> cal

Steffen Liebig steffen.liebig at gmx.de
Tue Apr 19 18:23:37 CEST 2016


Hello folks,

I had to re-order cal-related postVar sets for realUrl to get a suiting 
order fpr my Zrl's. Now I've got a little problem.

The following code is used:

'postVarSets' => array(

         '_DEFAULT' => array(
                             'events' =>
                                    array (
                                           0 =>
                                               array (
                                                      'GETvar' => 
'tx_cal_controller[view]',
                                                      'noMatch' => 'bypass',
                                                     ),

                                           1 =>
                                               array(
                                                     'GETvar' => 
'tx_cal_controller[getdate]',
                                                     'noMatch' => 'bypass',
                                                     ),


                                           2 =>
                                               array (
                                                      'GETvar' => 
'tx_cal_controller[year]',

                                                     ),

                                           3 =>
                                               array (
                                                      'GETvar' => 
'tx_cal_controller[month]',
                                                      'valueMap' => array (
'januar' => '01',
'februar' => '02',
'maerz' => '03',
'april' => '04',
'mai' => '05',
'juni' => '06',
'juli' => '07',
'august' => '08',
'september' => '09',
'oktober' => '10',
'november' => '11',
'dezember' => '12',
),
                                                     ),

                                             4 =>
                                               array (
                                                      'GETvar' => 
'tx_cal_controller[day]',
                                                      'noMatch' => 'bypass',
                                                      ),

                                            5 =>
                                              array (
                                                     'GETvar' => 
'tx_cal_controller[lastview]',
                                                     'noMatch' => 'bypass',
                                                    ),


                                           6 =>
                                               array(
                                                    'GETvar' => 
'tx_cal_controller[offset]',
                                                    'valueMap' => array (
'seite1' => '0',
'seite2' => '1',
'seite3' => '2',
'seite4' => '3',
),
                                                    'cond' => array (
'nextValueInList' => 'tx_cal_controller[uid]',
'noMatch' => 'bypass',
),
                                              ),

                                           7 => array (
                                                             'GETvar' => 
'tx_cal_controller[uid]',
'lookUpTable' =>
array (
'table' => 'tx_cal_event',
'id_field' => 'uid',
'alias_field' => 'title',
'addWhereClause' => ' AND NOT deleted',
'useUniqueCache' => 1,
'useUniqueCache_conf' =>
array (
'strtolower' => 1,
'spaceCharacter' => '-',
),
),
                                                             ),




                                           8 =>  array (
'GETvar' => 'tx_cal_controller[type]',
'valueMap' => array (
'detail' => 'tx_cal_phpicalendar',
),
                                                             ),





                                         ),

The whole calendar can be seen at 
http://www.pfaelzischer-schachbund.de/typo3751/spielbetrieb/turnierkalender.html. 
Just click through to e.g. November 2015 or any other month with more 
than 10 entries. This will show up "weitere Termine in diesem Monat" (my 
pagebrowser) on top and bottom of the list.

Result so far:

1) List view: arrays 0 to 6 already work properly
2) Arrays 4 and 5 aren't needed (=> bypass ok).
3) Detail view: Arrays 6 to 8 show up in the Url (bottom of browser 
window), but the detail view doesn't work.

Reason: I get double slashes from pagebrowser's array No. 6 which only 
get filled in list view. In detail view, it's simply empty which leads 
to a not-working detail view. Unfortunately, I can't put the pagebrowser 
to the end. This leads to empty slashes for uid and type where 'nomatch 
=> bypass' doesn't work.

Is there any way of adding a "condition" (as tried in array 6, not 
working) or similar so that array 6 will be "overseen" when somebody 
clicks an event to see the detail view ?

Thanks in advance for every hint

Steffen


More information about the TYPO3-project-calendar mailing list