[TYPO3-UG Oesterreich] PHP Skript - Ausgabe im Template

peda daremes peda.daremes at tele2.at
Sun Aug 20 21:40:52 CEST 2006


Hi Kurt,

die Extension 'lumophpinclude' habe ich mit Erfolg getestet.
Werde es später einmal für kompliziertere Fälle einsetzen.

Vielen Dank für deinen Hinweis!

peda

Am 20.08.2006, 16:15 Uhr, schrieb Kurt Dirnbauer  
<dirnbauer at web-consulting.at>:

> hi,
>
> schau dir mal die folgende ext an.
> http://typo3.org/documentation/document-library/extension-manuals/lumophpinc
> lude/1.1.1/view/1/1/
>
> also ein content-element, das php-code ausgibt.
> brauchst du das?
>
> cheers,
> kurt
>
>
>
> Am 20.08.2006 0:24 Uhr schrieb "peda daremes" unter  
> <peda.daremes at tele2.at>:
>
>> Hi Tuga-Gemeinde!
>>
>> Mühe mich mit einem 'PHP include'-Beispiel ab. Die Ausgabe 'Hello World'
>> soll nach einem Datensatz 'Inhalt' aufscheinen. Der Skript des Templates
>> stammt ursprünglich von einem bekannten Tutorial. Alles andere ist auch
>> danach aufgebaut. Bloss die Sache mit dem Einbinden des PHP-Skripts will
>> mir nicht gelingen. Die Ausgabe von 'Hello World' ist ausserhalb der
>> 'subparts' und daher nicht im Browser zu sehen. Hat jemand von euch  
>> einen
>> Tipp für mich, wie ich die PHP-Ausgabe in das Template einer Seite  
>> zwinge?
>>
>> Hier das Setup der Extension:
>> ----------------
>> # Setup - Beginn
>> # suchmaschinenfreundliche URLs erzeugen
>>   config.simulateStaticDocuments = 1
>>   config.simulateStaticDocuments_noTypeIfNoTitle = 1
>>
>> # main TEMPLATE cObject for the BODY
>> temp.mainTemplate = TEMPLATE
>>
>> temp.mainTemplate {
>>    template =< plugin.tx_automaketemplate_pi1
>>    workOnSubpart = DOCUMENT_BODY
>>    subparts.LayerMenu < temp.LayerMenu
>>    subparts.content < styles.content.get
>> }
>>
>> # main TEMPLATE cObject for the head
>> temp.headTemplate = TEMPLATE
>>
>> temp.headTemplate {
>>    template =< plugin.tx_automaketemplate_pi1
>>    workOnSubpart = DOCUMENT_HEADER
>> }
>>
>> # Default PAGE object:
>> config.includeLibrary = fileadmin/scripts/include.inc
>> page = PAGE
>> page.typeNum = 0
>> page.config.doctype = xhtml_trans
>> page.stylesheet = fileadmin/template/main/res/dielogomaten_style.css
>>
>> # copying the content from TEMPLATE for <body>-section:
>> page.10 < temp.mainTemplate
>>
>> # php include
>> # Problem: 'Hello World' wird ausserhalb vom CONTENT ELEMENT  
>> geschrieben.
>> page.20 = PHP_SCRIPT
>> page.20.file = fileadmin/scripts/surprise.inc
>>
>> # copying the content from TEMPLATE for <head>-section
>> page.headerData.10 < temp.headTemplate
>> # Setup - Ende
>> ------------------
>> Für eure Hilfe vielen Dank im Voraus!
>>
>> peda
>> _______________________________________________
>> TYPO3-at mailing list
>> TYPO3-at at lists.netfielders.de
>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-at
>>
>
>
> --
> web:consulting
> DI(FH) Kurt Dirnbauer 
> http://www.web-consulting.at
> E: dirnbauer at web-consulting.at
> T: +43 699 1134 6402
> Landstraßer Hauptstraße 75-77, Top 6 (Linker Aufgang), 1030 Wien
> Sätzgasse 5, 7210 Mattersburg
>
>
>
> _______________________________________________
> TYPO3-at mailing list
> TYPO3-at at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-at



-- 
__|



More information about the TYPO3-at mailing list