Zum Inhalt springen

seite mit bild anzeigen

Erstellt am 3. November 2004 · 9 Antworten · letzte Antwort am 9. November 2004

Tags: Bilder, Frage

rene04 ·

hallo,

habe seit einigen tagen angefangen mit typo3. das tutorial habe ich durch und nun habe ich angefangen eine eigene seite aufzubauen. auf meiner startseite soll nun ein pagecontent angezeigt werden welches aus text und bildern besteht. 2 bilder sind eingefügt. wenn ich nun aber die seite aufrufe werden erst 2 kleine symbole angezeigt welche signalisieren "hier soll ein bild sein" und diese verschwinden dann gänzlich. als wäre nichts da. im quelltext dann steht statt meinem bildernamen ein clear.gif.

was mache ich falsch ??

gruesse rene

Proximo ·

Ich denke du hast n fehler im Typoskript?^^ Zeig mal was du so geschrieben hast dann finde ich (oder die anderen) das vielleicht raus 😉

rene04 ·

# 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/
}

# Menu 1 cObject

temp.menu_1 = HMENU

# First level menu-object, textual

temp.menu_1.1 = TMENU
temp.menu_1.1 {

# Normal state properties
NO.allWrap = <div class="menu1-level1-no"> | </div>

# Enable active state and set properties:
ACT = 1
ACT.allWrap = <div class="menu1-level1-act"> | </div>
}

# Second level menu-object, textual

temp.menu_1.2 = TMENU
temp.menu_1.2 {

# Normal state properties
NO.allWrap = <div class="menu1-level2-no"> | </div>

# Enable active state and set properties:
ACT = 1
ACT.allWrap = <div class="menu1-level2-act"> | </div>
}

# 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
}

# 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
}

# Default PAGE object:

page = PAGE
page.typeNum = 0

# 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

Proximo ·

Du verwendest also ein HTML-Template... hmm... und du bist dir sicher das da die marker:

<!--- ###menu_1### --->menu_1<!--- ###menu_1### --->

und

<!--- ###content### --->content<!--- ###menu_1### --->

gesetzt sind und das auch nicht so ausschaut:

<!--- ###MENU_1### --->MENU_1<!--- ###MENU_1### --->

oder

###menu_1###

Warscheinlich jetzt ne blöde frage aber den Fehler hab ich als allererstes gemacht^^ "groß-kleinschreibung" und "marker stat subparts"

Wenn es nur an den Bildern liegt könnte man noch schauen ob dein Imagemagic funkioniert (auch sehr warscheinlich das es daran liegt)

Eine andere möglichkeit wäre das du im typoskript (falls du die Bilder mit typoskript eingebunden hast den falschen Befehl verwendet hast...

Ach ja es gibt noch ganz viele schöne Möglichkeiten^^ ich hoff du findest das Prob

MFG Proximo 😉

rene04 ·

es liegt nur an den bildern welche ich über page->create content eingefügt habe. genommen habe ich text mit bild. jetzt kommt aber der hammer ! wenn ich das bild unterhalb des textes einfüge, also dieses icon dafür klicke, dann gehts ! nur rechts davon oder rechts im text geht nicht.
das verstehe ich nicht.

gruesse rene

Proximo ·

Das ist ein sehr eigenartiges Problem... hab ich noch nie gehabt bzw hab keine Idee was du da gemacht hast^^ sorry

MFG Proximo

barthel ·
rene04 schrieb

es liegt nur an den bildern welche ich über page->create content eingefügt habe. genommen habe ich text mit bild. jetzt kommt aber der hammer ! wenn ich das bild unterhalb des textes einfüge, also dieses icon dafür klicke, dann gehts ! nur rechts davon oder rechts im text geht nicht.

Fehlt das Bild auch im HTML Quelltext ?
Hast du das Layout für die Bilderdarstellung manuell angepaßt ?

rene04 ·

ja, es fehlt auch im quelltext. da stehen nur clear.gifs.

wie layout angepasst ? was meinst du genau ?

gruesse rene

barthel ·
rene04 schrieb

ja, es fehlt auch im quelltext. da stehen nur clear.gifs.

hhhmmmm... o.O

Könntest du mal bitte deine Constants und dein Setup posten ?
Irgendwelche Menudeklarationen kannst du erstmal aus dem Posting entfernen ;-)
Damit es nicht zu viel wird.

rene04 ·

# 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/
}

# 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
}

# 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 -tags
workOnSubpart = DOCUMENT_BODY

# Substitute the ###content### subpart with some example content:
subparts.content < styles.content.get
}

# Default PAGE object:

page = PAGE
page.typeNum = 0

# Copying the content from TEMPLATE for -section:
page.10 < temp.mainTemplate

# Copying the content from TEMPLATE for <head>-section:
page.headerData.10 < temp.headTemplate

in constants stehen nur sachen die mit dem last update zu tun haben.