Hallo Peter,

perfekt, das war's, Danke!

Aber meine Condition ist nicht in geschweiften Klammern angegeben gewesen...
Oder ich bin blind... ;)

Gruß, Johannes.

> -----Ursprüngliche Nachricht-----
> Von: typo3-german-boun...@lists.typo3.org [mailto:typo3-german-
> boun...@lists.typo3.org] Im Auftrag von Peter Linzenkirchner
> Gesendet: Sonntag, 18. September 2016 16:05
> An: German TYPO3 Userlist <typo3-german@lists.typo3.org>
> Betreff: Re: [TYPO3-german] vCard File (.vcf) generieren - Ausgabe falsch
> 
> Nachtrag:
> 
> Conditions dürfen nie innerhalb von geschweiften Klammern stehen.
> 
> Also wenn dann so:
> 
> 
> page=Page
> page {
>      # Code
> }
> 
> 
> 
> [condition]
> page {
>     # bedingter Code
> }
> [end]
> 
> Aber wie gesagt, du brauchst keine Condition.
> 
> Gruß
> Peter
> 
> 
> > Am 18.09.2016 um 16:01 schrieb Peter Linzenkirchner <li...@lisardo.de>:
> >
> > Hallo Johannes,
> >
> > das funktioniert tatsächlich anders:
> >
> > page = PAGE
> > page {
> >   typeNum=0
> >   # dein normales PAGE-Objekt
> > }
> >
> > vCard = PAGE
> > vCard {
> >     typeNum = 5000
> >     # und der Rest deiner Definition.
> > }
> >
> > Thats it.
> > Keine Condition, die type= Defintion reicht aus.
> > Wenn typeNum= fehlt, wird der Typ 0 angenommen, deshalb ist es beim
> normalen page-Objekt nicht nötig, typeNum= zu schreiben.
> >
> > Gruß
> > Peter
> >
> >
> >> Am 18.09.2016 um 15:57 schrieb Johannes C. Laxander
> <j...@laxander.com>:
> >>
> >> Hallo,
> >>
> >> ich dachte, das sei ganz einfach: eigenes Page-Objekt mit eigener
> >> typeNum erstellen und fertig. Pustekuchen!
> >>
> >> Das ist der Link für die vcf-Datei:
> >> http://domain.tld/?n=Nachname&v=Vorname&pagetype=5000
> >>
> >> Mein TypoScript  sieht so aus:
> >>
> >> page = PAGE
> >> page {
> >>  typeNum = 0
> >> ...
> >> }
> >> 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 = TEXT
> >>            10.value (
> >>                    BEGIN:VCARD
> >>                    VERSION:2.1
> >>                    ...
> >>                    END:VCARD
> >>            )
> >>    }
> >> [global]
> >>
> >> Es wird eine Datei Download.vcf heruntergeladen.
> >> Aber es wird der HTML-Code der aktuellen 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.
> >>
> >> Was mache ich falsch???
> >>
> >> Johannes.
> >>
> >> _______________________________________________
> >> TYPO3-german mailing list
> >> TYPO3-german@lists.typo3.org
> >> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german
> >
> >
> >
> > --
> > Xing: http://www.xing.com/profile/Peter_Linzenkirchner
> > Web: http://www.typo3-lisardo.de
> > Facebook: http://tinyurl.com/lisardo-multimedia
> >
> > _______________________________________________
> > TYPO3-german mailing list
> > TYPO3-german@lists.typo3.org
> > http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german
> 
> --
> Xing: http://www.xing.com/profile/Peter_Linzenkirchner
> Web: http://www.typo3-lisardo.de
> Facebook: http://tinyurl.com/lisardo-multimedia
> 
> _______________________________________________
> TYPO3-german mailing list
> TYPO3-german@lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german

_______________________________________________
TYPO3-german mailing list
TYPO3-german@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german

Antwort per Email an