Hi,
ich versuche gerade wie in der Install-Anleitung beschrieben http://typo3.org/documentation/document-library/extension-manuals/macina_banners/1.5.0/view/1/2/#id3989258 einen Marker in mein Html-Template einzubauen.
Ich habe den Code in mein Template Setupfeld eingefügt
temp.bannertop < plugin.tx_macinabanners_pi1
temp.bannertop {
# show banners with this attribute, default options are: "top, left, bottom, right", all Descriptions of Banner Categories can be used
placement = top
#mode to show banners. Options are: all, random
mode = all
# list of page IDs where the banners should be taken from (comma seperated. i.e.: 1,5,7)
pidList = 18
# levels of recursion to search for banners
recursive = 0
# Limit number of banners
results_at_a_time = 3
}
marks.bannertop < temp.bannertop
und dann an die entsprechende Stelle im Template
<!-- ###bannertop### -->
geschrieben. Aber es tut sich nichts.
Wenn ich nun im Quelltext auf der richtigen Seite schaue, dann steht dort sowas an der entsprechenden Stelle:
<!--###s2z5s22### begin -->
<!-- ###bannertop### -->
<!--###s2z5s22### end -->
Was mach ich falsch? Wäre schön, wenn mir jemand helfen könnte. Danke
Jo, da fehlt auch nen bischen was... Dein Page-Object fehlt doch komplett.
Also
page.10.marks.bannertop < temp.bannertop
ist schon das Mindeste. Wenn dein Page-Object anders heißt, dann musst du es noch anpassen.
Das temp.bannertop ist eigentlich auch über... warum nicht gleich das plugin auf den Marker kopieren und dann
plugin.tx_macinabanners_pi1 {
# show banners with this attribute, default options are: "top, left, bottom, right", all Descriptions of Banner Categories can be used
placement = top
#mode to show banners. Options are: all, random
mode = all
# list of page IDs where the banners should be taken from (comma seperated. i.e.: 1,5,7)
pidList = 18
# levels of recursion to search for banners
recursive = 0
# Limit number of banners
results_at_a_time = 3
}
page.10.marks.bannertop < plugin.tx_macinabanners_pi1
Habe
plugin.tx_macinabanners_pi1 {
# show banners with this attribute, default options are: "top, left, bottom, right", all Descriptions of Banner Categories can be used
placement = top
#mode to show banners. Options are: all, random
mode = all
# list of page IDs where the banners should be taken from (comma seperated. i.e.: 1,5,7)
pidList = 18
# levels of recursion to search for banners
recursive = 0
# Limit number of banners
results_at_a_time = 3
}
page.10.marks.s2z5s22 < plugin.tx_macinabanners_pi1
in mein Setup eingebunden und
<!-- ###s2z5s22### -->
in mein Template geschrieben.
Ausgegeben wird jetzt auf der richtigen Seite folgendes:
<td class="s2z5s22"><!--
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="left" valign="middle"><div style="margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; "><a href="index.php?id=1&no_cache=1&tx_macinabanners_pi1[banneruid]=1" ><img src="uploads/tx_macinabanners/banner_heizkosten_468x60_01.gif" width="468" height="60" border="0" alt="" title="" /></a></div>
</td>
</tr>
</table>
begin -->
<!--
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="left" valign="middle"><div style="margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; "><a href="index.php?id=1&no_cache=1&tx_macinabanners_pi1[banneruid]=1" ><img src="uploads/tx_macinabanners/banner_heizkosten_468x60_01.gif" width="468" height="60" border="0" alt="" title="" /></a></div>
</td>
</tr>
</table>
end --></td>
Soweit ich das sehe, ist das auch richtig so, aber warum ist das auskommentiert?!
Na gut, manchmal bin ich glaub ich auch einfach nur zu blöd #giggle#
Man sollte es im Template mal mit
###s2z5s22###
probieren. Nun scheint es auch zu funktionieren.
Danke für die Hilfe.