Hab ein paar Probleme mit dem Autoparser,...
Ich wollte heute mein template um einen Punkt zu erweitern.
Ich hab das auch alles soweit gechafft
Wenn ich in den Quellcode schaue sehe ich folgendes:
Also hat der Autoparser den neuen Teil erkannt.
<td valign="top" id="werbung"><!--###werbung### begin --><!--###werbung### end --></td>
Jedoch wird er nicht ersetzt durch die Informationen die im Setup Teil des Templates stehen:
# Main TEMPLATE cObject for the BODY
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
# Feeding the contnet from the Auto-pareser 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
# Substitue the ###content### subpart with some example content:
subparts.content < styles.content.get
# Substitue the ###werbung### subpart with some example content:
subparts.werbung = TEXT
subparts.werbung.value = Hallo Welt !
}
Habe ich da jetzt was vergessen. Ich meine 2 mal hat das ganze ja schon funktioniert, wieso klappt es mit dem dritten elemnt nicht ??
Hi Lifestyle,
hast Du in der Konfiguration für das Autoparser-Plugin angegeben, dass er "td"-Tags parsen soll? Also:
plugin.tx_automaketemplate_pi1.elements.TD.all = 1
Evtl. parst er nur "div"- und "p"-Tags? Wie sind denn Dein "menu_1" und "content" umschlossen?
BTW, der Autoparser ersetzt nicht die Marker-Angaben innerhalb der Tags (z.B. <!--###werbung### begin-->), sondern sucht nach dem "id"-Attribut, bei Dir also
... id="werbung" ...
Was innerhalb der umschließenden Tags steht, ist unerheblich, könnte also auch z.B. "Werbung" lauten.
Grüße
Jochen
also, die ID Tags werden miteingelesen:
ist in Zeile 17 zu sehen:
Mir scheint, dass irgendetwas mit Zeile 67 - 69 nicht stimmt, denn das erstellen wird vom AUtoparser ja gemacht, aber das ersetzten nicht oder sehe ich das faslch ??
# Configure the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
# Read the template file:
content = FILE
content.file = fileadmin/template/main/index2.htm
# here we define which element in 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/
}
# Menu 1 cObject
temp.menu_1 = HMENU
temp.menu_1.wrap = <img src="fileadmin/template/main/navigation.jpg" width="166" height="37" alt="" /><img src="fileadmin/template/main/trenner.jpg" border="0" alt="" />
# 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><img src="fileadmin/template/main/trenner.jpg" border="0" alt="" />
# Enable active state and set properties:
ACT = 1
ACT.allWrap = <div class="menu1-level1-act"> | </div><img src="fileadmin/template/main/trenner.jpg" border="0" alt="" />
}
# 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><img src="fileadmin/template/main/trenner.jpg" border="0" alt="" />
# Enable active state and set properties:
ACT = 1
ACT.allWrap = <div class="menu1-level2-act"> | </div><img src="fileadmin/template/main/trenner.jpg" border="0" alt="" />
}
# Main TEMPLATE cObject for the BODY
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
# Feeding the contnet from the Auto-pareser 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
# Substitue the ###content### subpart with some example content:
subparts.content < styles.content.get
# Substitue the ###werbung### subpart with some example content:
subparts.werbung = TEXT
subparts.werbung.value = HAllo Welt !
}
# 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
}
# 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
Wie sieht denn der Inhalt Deines HTML-Templates aus? Und was ist das Ergebnis des Autoparsers?
hallo,
ich habe das problem mittlerweile gelöst, ich habe einfach nur die id von werbung auf content2 geändert und dann ging auf einmal alles !!
Nur hab ich mal ne Frage gestalterischer Natur,.....
Auf meiner HPbesteht der Teil ab dem oberen Logo aus einer Tabelle mit jeweils 2 Zeilen und Spalten.
Wobei jedoch die 2 Zeilen der 2 Spalte zu einer zusammengefasst sind.
Wie bekomme ich es denn jetzt hin, dass der Inhalt der 1.Spalte, 2.Zeile immer ganz oben anfängt und nicht auf der hälfte,......
Valign bringt da irgendwie gar nix,....
Na wenn du die 2.Spalte zusammengefasst hast, ist es ja wohl nur noch eine Zelle, nämlich die 1.Zeile, 2.Spalte, die dann per rowspan auch die Zeile darunter füllt... Das müsste dann gehen. Ansonsten auf CSS / DIV Layout umsteigen.