[TYPO3-german] Probleme mit der Druckansicht

Yves Chassein yves.chassein at promatis.de
Thu Nov 29 20:53:59 CET 2012


Hey,
ich habe Probleme mit meiner Druckansicht meiner Webseite. Wenn ich auf 
den Link klicke der im FrontEnd angewzeigt wird wird nur die gleiche 
Seite nochmal in einem neuen Tab geöffnet. Vielleicht hat jemand eine 
Idee woran dies liegen kann. Hier der Auschnitt aus meinem Template, der 
die Druckfunktionalität bereit stellen soll

         page.10.marks.FUNCTION_PRINT = TEXT
         page.10.marks.FUNCTION_PRINT {
                 typolink{
                         parameter.data = TSFE:id
                         target = _blank
                         ATagParams = title="Druckansicht - dieses 
Dokument fuer den Druck optimiert anzeigen" id="printlink" 
class="function_menu_content_entry"

                         # add all GET parameters from the current URL
                         addQueryString = 1
                         addQueryString.method = GET
                         addQueryString.exclude = id

                         # add additional parameters
                         additionalParams = TEXT
                         additionalParams{
                                 cObject = COA
                                 cObject{

                                         10 = TEXT
                                         10.value = &type=98
                                         # Wenn ein indexed_search 
Suchparameter vorhanden ist, wird dieser wieder angehängt
                                         20 = TEXT
                                         20{
                                                 dataWrap = 
&tx_indexedsearch[sword]={GP:tx_indexedsearch|sword}|
                                                 if.isTrue.data = 
GP:tx_indexedsearch|sword
                                         }

                                 }
                         }


                 }
                 value = Diese Seite drucken
         }

         }


Meine realurl.conf sieht wie folgt aus:
       // Allgemeine Konfiguration für RealURL
  $TYPO3_CONF_VARS['FE']['addRootLineFields'].= ',tx_realurl_pathsegment';
  $TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
      '_DEFAULT' => array(
          'preVars' => array(
                          array(
                                  'GETvar' => 'L',
                                  'valueMap' => array(
                                          'de' => '0',
                                          'en' => '1',
                                  ),
                                  'valueDefault' => 'de',
                             'noMatch' => 'bypass',
                          ),
              array(
                  'GETvar' => 'no_cache',
                      'valueMap' => array(
                          'nc' => 1,
                      ),
                      'noMatch' => 'bypass',
                  ),

                  ),

                 'init' => array(
              'enableCHashCache' => 1,
              'appendMissingSlash' => 'ifNotFile',
              'enableUrlDecodeCache' => 0,
              'enableUrlEncodeCache' => 1,
              'postVarSet_failureMode' => '',
          ),
          'redirects' => array(),
              'pagePath' => array(
                  'type' => 'user',
                                  //'userFunc' => 
'EXT:aoe_realurlpath/class.tx_aoerealurlpath_pagepath.php:&tx_aoerealurlpath_pagepath->main',
                  'userFunc' => 
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
                  'spaceCharacter' => '-',
                  'languageGetVar' => 'L',
                  'expireDays' => 7,
                  'rootpage_id' => 27,
                  'firstHitPathCache' => 1,
//'segTitleFieldList'=>'alias,tx_aoerealurlpath_overridesegment,nav_title,title,subtitle',
              ),
              'fixedPostVars' => array(),
              'postVarSets' => array(
                  '_DEFAULT' => array(
                      // news archive parameters
                      'archive' => 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 anMd 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[backPid]',
                      ),
                      array(
                          'GETvar' => 'tx_ttnews[swords]',
                      ),
                  ),*/
                                  'article' => array(
                                         array(
                                                 'GETvar' => 
'tx_ttnews[pointer]',
                                                 'valueMap' => array(),
       'GETvar' => 'tx_ttnews[pointer]',
                                                 'valueMap' => array(),
                                                 'noMatch' => 'bypass',
                                         ),
                                         array(
                                                 'GETvar' => 
'tx_ttnews[tt_news]',
                                                 'lookUpTable' => array(
                                                 'table' => 'tt_news',
                                                 'id_field' => 'uid',
                                                 'alias_field' => 
'CONCAT(title,\'-\',uid)',
                                                 'addWhereClause' => ' 
AND NOT deleted',
                                                 'useUniqueCache' => 1,
'useUniqueCache_conf' => array(
                                                         'strtolower' => 1,
'spaceCharacter' => '-',
                                                 ),
                                                 'languageGetVar' => 'L',
'languageExceptionUids' => '',
                                                 'languageField' => 
'sys_language_uid',
'transOrigPointerField' => 'l18n_parent',
                                                 'autoUpdate' => 1,
                                                 'expireDays' => 30,
                                                 ),
                                         ),
                                         array(
                          'GETvar' => 'tx_ttnews[backPid]',
                      ),
                      array(
                          'GETvar' => 'tx_ttnews[swords]',
                      ),
                                 ),
              ),
          ),
          // configure filenames for different pagetypes
          'fileName' => array(
              'defaultToHTMLsuffixOnPrev' => 1,
              'index' => array(
                  'print.html' => array(
                      'keyValues' => array(
                          'type' => 98,
                      ),
                  ),
                  'rss.xml' => array(
                      'keyValues' => array(
                          'type' => 100,
                      ),
                  ),
                  'rssallgemein.xml' => array(
                      'keyValues' => array(
                          'type' => 101,
                      ),
                  ),
                  'rsskarriere.xml' => array(
                      'keyValues' => array(
                          'type' => 102,
                      ),
                  ),
                  'rssmedien.xml' => array(
                      'keyValues' => array(
                          'type' => 103,
                      ),
                  ),
                      ),
                  ),
                                 'sitemap.xml' => array(
                                      'keyValues' => array(
                                          'type' => 200,
                                      ),
                             ),
              ),
          ),
      ),
       );



Komischer weise funktioniert es wenn ich an die URL hinten ein 
/print.html anhänge. Nutzte ich im TypoScript etwas was nicht mehr 
verfügbar ist?








More information about the TYPO3-german mailing list