Zum Inhalt springen

<? include "irgendwas.php"; ?>

Erstellt am 15. September 2003 · 14 Antworten · letzte Antwort am 15. April 2004

Tags: Frage

papa ·

hallo,

ich möchte eine externe php (html) datei, mitten in meinem content includen.Also mit markern kann ich das nicht realisieren.
Kann man den auch eine Datei über den RTE includen z.b. mit dem element "html eifügen", und wenn ja wie? Mit iframe kann ich leider auch nicht arbeiten da die höhe variabel bleiben muß.

<? include "irgendwas.php"; ?> habe ich versucht, funktioniert aber leider nicht.

Gruß
papa

Patric ·

hmm wie wäre die Idee die Suche zu benutzen? o.O
Hab so ne Frage schon 2 mal gelesen und ne Lösung gepostet...

Aber naja, aller guten Dinge sind drei:

Das kommt ins SETUP Feld vom Template bzw. extended Template

tt_content.script = CASE
tt_content.script {
key.field = select_key
MARKERNAME= PHP_SCRIPT_EXT
MARKERNAME.file = fileadmin/scripts/meinscript.php
}

füge jetzt ein neues Seiteninhaltselement vom Typ "Script" ein und unter "code" Trägste MARKERNAME ein. FERTIG.

Gruß Patric

Unbekannter Benutzer ·

sagt mal, wieso macht ihr das denn so kompliziert? is doch wirklich ein wahnsinn....

einfach im template unter setup folgende zwei zeilen:

  subparts.LINKS = PHP_SCRIPT_EXT 
  subparts.LINKS.file = fileadmin/zitate/zufallszitat.php

wobei LINKS in der template datei als subpart definiert ist. einfacher geht es doch nicht!

lg
emanuel

doku ·
::emanuel:: schrieb

tja, bei mir gibt es aber keinen typ namens 'script'. meinst du vielleicht datensatz einfügen?

wenn du css.styled content verwendest, dann fehlt so manches... 😉

TW ·
Obstel schrieb

Gilt das für jede andere datei auch ?

ich will eine javascript datei includen im header, aber irgendwie will der nicht so wie ich will.

http://www.freelancerfan.de/scifi/

Ist zur zeit unsere Baustelle :o

hi
vielleicht so.........

page.headerData.5 = TEXT 
page.headerData.5.value = <script type="text/javascript" src="fileadmin/js/main.js" language="JavaScript"></script>

adios
thorsten

Obstel ·

das steht in meinem Autoparser Template File

# Configuring the Auto-Parser:
plugin.tx_automaketemplate_pi1 {
# Read the template file:
content = FILE
content.file = fileadmin/template/template_1.html
# Here we define which elements in the HTML that
# should be wrapped in subpart-comments:
elements {
BODY.all = 1
BODY.all.subpartMarker = DOCUMENT_BODY
HEAD.all = 1
HEAD.all.subpartMarker = DOCUMENT_HEADER
HEAD.rmTagSections = title
TD.all = 1
}
# Prefix all relative paths with this value:
relPathPrefix = fileadmin/template/
}

# Default PAGE object:
page = PAGE
page.typeNum = 0
page.headerData.5 = TEXT 
page.headerData.5.value = <script type="text/javascript" src="fileadmin/js/main.js" language="JavaScript"></script>

Und das in meinem Main cObject Template File

# Main TEMPLATE cObject for the BODY
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
# Feeding the content from the Auto-parser to the TEMPLATE cObject:
template =< plugin.tx_automaketemplate_pi1
# Select only the content between the <body>-tags
workOnSubpart = DOCUMENT_BODY
# Substitute the ###menu_1### subpart with dynamic menu:
subparts.menu_1 < temp.menu_1
# Substitute the ###content### subpart with some example content:
subparts.content < styles.content.get
subparts.menu_rechts < temp.menu_rechts
}
# Main TEMPLATE cObject for the HEAD
temp.headTemplate = TEMPLATE
temp.headTemplate {
# Feeding the content from the Auto-parser to the TEMPLATE cObject:
template =< plugin.tx_automaketemplate_pi1
# Select only the content between the <head>-tags
workOnSubpart = DOCUMENT_HEADER
}
# Copying the content from TEMPLATE for <body>-section:
page.10 < temp.mainTemplate
# Copying the content from TEMPLATE for <head>-section:
page.headerData.10 < temp.headTemplate

Beides in Setup

wo liegt der Fehler das er immernoch das anzeigt:

http://www.planet-fiction.de

TW ·
Obstel schrieb

"hochschieb"

hi

page.headerData.5 = TEXT 
page.headerData.5.value = <script type="text/javascript" src="fileadmin/js/main.js" language="JavaScript"></script>

das main.js is nur ein beispiel!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
biste sicher, dass das ne jscript datei ist, die da nicht inkludet wird?
haste die vorliegen oder was ist das????

du musst die paar code zeilen in dein setup des root templates schreiben...
oberhalb der schicht 10.page......

also was ist das für ne datei, weil eigentlich läuft es so mit jscript dateien!

cu
thorsten

Obstel ·
<!--Auswahlleiste Anfang-->
<table width="100%" height="23" cellpadding="0" cellspacing="0" border="0" background="http://www.gamevision.de/design/bg.gif">
<tr>
<td width="43" height="23"><img src="http://www.gamevision.de/design/logo01.gif" width="43" height=23" alt="" /></td>
<td width="240" height="23"><a href="http://www.gamevision.de" target="_blank"><img src="http://www.gamevision.de/design/logo02.gif" width="240" height=23" border="0" alt="" /></a></td>
<td width="100%" height="23"><img src="http://www.gamevision.de/design/1px.gif" width="1" height=23" alt="" /></td>
<td width="124" height="23"><img src="http://www.gamevision.de/design/logo03.gif" width="124" height=23" alt="" /></td>
<td width="124" height="23">
<table cellpadding="0" cellspacing="0" border="0"><tr><td>
<form name="auwahl" style="margin:0px;">
<select name="links" style="width:170;font-family:verdana;font-size:10px;background-color:#ADD23B;color:#1B2538;" onChange="if(this.form.links.options[this.form.links.selectedIndex].value.length!=0) window.open(this.form.links.options[this.form.links.selectedIndex].value,'_blank');">
<option>Bitte auswählen ...</option>
<option value="http://www.avp2daily.de/">AvP 2 Daily</option><option value="http://www.doomvision.de/">Doomvision</option><option value="http://www.freelancerfan.de">Freelancer Universum</option><option value="http://www.gothicvision.de/">GothicVision</option><option value="http://www.gtaforever.de">GTAForever</option><option value="http://www.maxpaynearea.de/">Max Payne Area</option><option value="http://www.painkiller-crypt.de">Painkiller-Crypt</option><option value="http://panzers.gamevision-network.de/">Panzersfront</option><option value="http://www.planetbloodlines.de/">Planet Bloodlines</option><option value="http://www.planet-wow.de">Planet World of WarCraft</option><option value="http://www.planet-koh.de">Planet-Knights of Honor</option><option value="http://www.planet-stalker.de">Planet-Stalker</option><option value="http://quake.gamevision-network.de">Quake 4 World</option><option value="http://www.squaresource.de/">Squaresource</option></select></form>
</td></tr><tr><td height="1"><img src="http://www.gamevision.de/design/1px.gif" width="1" height=1" alt="" /></td></tr></table>
</td>
<td width="34" height="23"><img src="http://www.gamevision.de/design/logo04.gif" width="34" height=23" alt="" /></td>
</tr>
</table>
<!--Auswahlleiste Ende-->

^^ des steht in der http://www.gamevision.de/netbar/leiste.gv

vielleicht erkennt typo3 die Endung *.gv nicht an ?

Bei meinem Template kommt das AutoParser Template vorm Main cObject Template.

Der Code ist von den Tutorials. (Copy & Paste)
Ich setzt mich schon seit 2 Wochen mit typo3 auseinander, das meiste klappt ja auch, nur das Include nicht.