[TYPO3-german] PageTypeNum

Johannes C. Laxander jc at laxander.com
Sun Sep 18 12:13:56 CEST 2016


Hallo Renzo, Hallo Dieter,

Danke für Eure Hilfe, aber irgendwo habe ich noch einen Fehler den ich nicht sehe...

Das ist mein der Link für die vcf-Datei: http://domain.tld/?n=Nachname&v=Vorname&pagetype=5000

Mein TypoScript  sieht so aus:

page = PAGE
page {
...
}
page.10 = FLUIDTEMPLATE
page.10 {
...
}

[globalVar = GP:pagetype=5000]
	config {
		disableAllHeaderCode = 1
		additionalHeaders = Content-Type:text/vcard
		disableCharsetHeader = 1
		disablePrefixComment = 1
		# verhindere Ausgabe von parseTime
		debug = 0
	}

	vcard = PAGE
	vcard {
		typeNum = 5000
		10 = FLUIDTEMPLATE
		10 {
			template = FILE
			template.file = {$resourceDir}/Fluidtemplates/Private/Templates/VcardTemplate.html
			layoutRootPath  = {$resourceDir}/Fluidtemplates/Private/Layouts
			partialRootPath = {$resourceDir}/Fluidtemplates/Private/Partials
			templateRootPath = {$resourceDir}/Fluidtemplates/Private/Templates
			variables {
				vorname = TEXT
				vorname.data = GP:v
				nachname = TEXT
				nachname.data = GP:n
				anzeigename = TEXT
				anzeigename.data = GP:a
                                                              ... usw.
			}
		}
	}
[global]

Aber es wird nach wie vor der HTML-Code der Seite ausgegeben!???
Die Datei download.vcf hat folgenden Inhalt:

<div id="wrap" >
	<div class="headerservice container hidden-print">
		<div class="row">
		</div>
	</div>
	<header class="topheader">
... usw.

Seht ihr den Fehler?

Johannes.



More information about the TYPO3-german mailing list