[TYPO3-german] T3 v6.1 - RealURL und PDF_Generator2

Marco Brüggemann marco at schauart.de
Mon Nov 4 10:49:21 CET 2013


Hallo Leute,

ich stehe gerade voll auf dem Schlauch. Ich möchte RealURL und 
PDF-Generator so nutzen, dass mir mit aufrufen einer pdf-Datei im 
WebPfad (www.MeineDomain.de/kontakt.pdf) die jeweilige Seite die als 
HTML auch existiert un mit RealURL statisch dargestellt wird 
(www.MeineDomain.de/kontakt.html), von PDF-Generator umgewandelt wird.

Ich habe jetzt RealURL am laufen, und es ist so konfiguriert

(realurl_autoconf.php)
<?php
$TYPO3_CONF_VARS['FE']['addRootLineFields'].= ',tx_realurl_pathsegment';
$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
     '_DEFAULT' => array(
         'init' => array(
             'enableCHashCache' => 1,
             'appendMissingSlash' => 'ifNotFile',
             'enableUrlDecodeCache' => 1,
             'enableUrlEncodeCache' => 1,
             'postVarSet_failureMode' => '',
         ),
         'redirects' => array(),
         'preVars' => array(
             array(
                 'GETvar' => 'no_cache',
                     'valueMap' => array(
                         'nc' => 1,
                     ),
                     'noMatch' => 'bypass',
                 ),
                 array(
                     'GETvar' => 'L',
                     'valueMap' => array(
                         # 'de' => '0',
                         'en' => '1',
                     ),
                     'valueDefault' => 'de',
                     'noMatch' => 'bypass',
                 ),
             ),
             'pagePath' => array(
                 'type' => 'user',
                 'userFunc' => 
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
                 'spaceCharacter' => '-',
                 'languageGetVar' => 'L',
                 'expireDays' => 7,
                 'rootpage_id' => 1,
                 'firstHitPathCache' => 1,
             ),
             'fixedPostVars' => array(),
             'postVarSets' => array(
                 '_DEFAULT' => 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]',
                     ),
                 ),
             ),
         ),
         // 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,
                     ),
                 ),
                 'rss091.xml' => array(
                     'keyValues' => array(
                         'type' => 101,
                     ),
                 ),
                 'rdf.xml' => array(
                     'keyValues' => array(
                         'type' => 102,
                     ),
                 ),
                 'atom.xml' => array(
                     'keyValues' => array(
                         'type' => 103,
                     ),
                 ),
             ),
         ),
     ),
);
?>

ich habe jetzt an meine Einstellungen dieses hier abgeändert (PDF 
hinzugefügt)

         // 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,
                     ),
                 ),
                 'rss091.xml' => array(
                     'keyValues' => array(
                         'type' => 101,
                     ),
                 ),
                 'rdf.xml' => array(
                     'keyValues' => array(
                         'type' => 102,
                     ),
                 ),
                 'atom.xml' => array(
                     'keyValues' => array(
                         'type' => 103,
                     ),
                 ),
                 '.pdf' => array(
                     'keyValues' => array(
                         'type' => 123,
                     ),
                 ),
             ),
         ),
     ),
);

wenn ich jetzt "www.MeineDomain.de/kontakt.pdf" aufrufe und ich in 
dieser Seite keinen Content angelegt habe, wird so etwas ausgegeben:

%PDF-1.3 3 0 obj <> endobj 4 0 obj <> stream 2 J 0.57 w q 36.85 36.85 m 
36.85 805.04 l 558.43 805.04 l 558.43 36.85 l W n 0.000 G 0.000 g Q 
endstream endobj 1 0 obj <> endobj 2 0 obj << /ProcSet [/PDF /Text 
/ImageB /ImageC /ImageI] /Font << >> /XObject << >> >> endobj 5 0 obj << 
/Producer (FPDF 1.53) /CreationDate (D:20131104104038) >> endobj 6 0 obj 
<< /Type /Catalog /Pages 1 0 R /OpenAction [4 0 R /FitH null] 
/PageLayout /OneColumn >> endobj xref 0 7 0000000000 65535 f 0000000241 
00000 n 0000000328 00000 n 0000000009 00000 n 0000000098 00000 n 
0000000422 00000 n 0000000498 00000 n trailer << /Size 7 /Root 6 0 R 
/Info 5 0 R >> startxref 601 %%EOF

Was bedeutet das?

wenn ich Content anlege, wird eine leere Seite ohne Quellcode angezeigt.

Danke für eure Hilfe.
Marco.


More information about the TYPO3-german mailing list