Hi Leute,
versuche gerade das Advanced Banner Module auf meiner Site einzubauen.
Die Extension habe ich installiert, danach einen SysFolder namens Banners angelegt und dort ein Banner Record reingetan. Bild eingefügt, Link angegeben usw...
dann habe ich folgenden Coe in meinen Setup Template
temp.bannertop < plugin.tx_macinabanners_pi1
temp.bannertop {
# show banners with this attribute, options are: top, left, bottom, right
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 f.E.: 1,5,7)
pidList = 1
# levels of recoursion to search for banners
recursive = 0
# Limit numeber of Banners
results_at_a_time = 3
}
und mit folgend code lass ich ihn ausgeben
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
template =< plugin.tx_automaketemplate_pi1
workOnSubpart = DOCUMENT_BODY
subparts.td_content < styles.content.get
subparts.td_datum < temp.Datum
subparts.td_banner < temp.bannertop
subparts.menu_1 < temp.menu_1
}
doch leider wird der banner auf meiner site nicht angezeigt - WAS HAB ICH DEN VERGESSEN ??
hi stone2k2
hier ist mein code
################
##macina_banners >#
################
temp.bannertop < plugin.tx_macinabanners_pi1
temp.bannertop {
# show banners with this attribute, options are: top, left, bottom, right
placement = top
#mode to show banners, options are: all, random
mode = random
# list of page ids where the banners should be taken from ( comma seperated f.E.: 1,5,7)
pidList = 584
# levels of recoursion to search for banners
recursive = 0
# Limit numeber of Banners
results_at_a_time = 3
# image preconfig
image {
file.maxW = 728
#file.params = -quality 90 // activate to force quality 90
#file.ext = jpg // activate to force jpg
}
}
################
##< macina_banners #
#################
und dass noch:
subparts.CONTENT = TEMPLATE
marks.bannertop < temp.bannertop
also wenn ich ein Seitenelement namens Bannermodul anlege und dort als Ausgangspunkt den SysFolder nehmen funktionert es - nur dass der Banner im Content Bereich ausgegeben wird.
Ich möchte aber dass der Banner auf ALLEN Seiten zu sehen ist und dass er ebenfalls die Elemente vom Sysfolder nimmt. Der Banner soll beim Marker "td_banner" ausgegeben werden.
Tja ich könnte jetzt auf jeder Seite ein Seitenelement anlegen aber das ist bei ca. 100 Seiten ein bisschen mühselig und ich glaube dass es anders auch geht aber wie ??
ich würde es so bauen:
-banner seite (insertplugin->bannermodule)
---baner sysOrdner (hier solltest du alle banners lagern)
ich glaube wir reden da irgendwie aneinadner vorbei.
ich möchte ja dass der Banner auf All meinen Seiten dargestellt wird, aber ich möchte nicht auf jeder Seite das Bannermodul einfügen sondern irgendwie über den Template Code bestimmen dass der Banner auf allen Seiten ausgegeben wird
Aber wie ??
Hi Stone,
ich habe dich schon richtig verstanden.
wenn du alles genau so machst wie ich es gemacht habe, läuft es schon! 😉
sorry, ich steh ein bisschen auf der leitung
also meine struktur sieht so aus:
-Startseite (hat ein Root Template was für alle Seiten gilt)
---Banner (Sysfolder mit den Banners)
---Aktuelles
---News
---Termine
---Downloads
---usw....
hier der Template Code der Startseite
ps: auf der Startseite hab ich dann noch das Bannermodul Plugin eingefügt mit Ausgangspunkt (Banner Sysfolder)
doch der Banner wird nicht beim Marker "td_banner" ausgegeben sonder im Content bereich
# Standardsprache festlegen
config.locale_all = de_DE@euro
# Sprache der Seite
page.config.sys_language_uid = 1
page.config.language = de
page.config.locale_all = de_DE
# Einschalten des Spam Schutzes (benötigt allerdings JavaScript) und Angabe in welches Symbol @ umgewandelt wird. Standard: (at)
config.spamProtectEmailAddresses = 2
config.spamProtectEmailAddresses_atSubst = @
temp.bannertop < plugin.tx_macinabanners_pi1
temp.bannertop {
# show banners with this attribute, options are: top, left, bottom, right
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 f.E.: 1,5,7)
pidList = 1
# levels of recoursion to search for banners
recursive = 0
# Limit numeber of Banners
results_at_a_time = 3
}
#########################################
# Das Menu erzeugen #
#########################################
temp.menu_1 = HMENU
temp.menu_1.1 = TMENU
temp.menu_1.1 {
target = _top
NO.allWrap = <tr><td width="1" background="fileadmin/template/images/strich_rot_senk.gif"><img border="0" src="fileadmin/template/images/transparent.gif" width="1" height="1"></td><td width="21" bgcolor="#e7e7e7" align="left" valign="top"><img border="0" src="fileadmin/template/images/pfeil_menu.gif" width="21" height="22"></td><td width="1" background="fileadmin/template/images/strich_rot_senk.gif"><img border="0" src="fileadmin/template/images/transparent.gif" width="1" height="1"></td><td width="179" class="td_menutext" align="left" valign="top"> | </td><td width="1" background="fileadmin/template/images/strich_rot_senk.gif"><img border="0" src="fileadmin/template/images/transparent.gif" width="1" height="1"></td></tr><tr><td colspan="5" background="fileadmin/template/images/strich_rot_wag.gif"><img border="0" src="fileadmin/template/images/transparent.gif" width="1" height="1"></td></tr>
ACT = 1
ACT.allWrap = <tr><td width="1" background="fileadmin/template/images/strich_rot_senk.gif"><img border="0" src="fileadmin/template/images/transparent.gif" width="1" height="1"></td><td width="21" bgcolor="#e7e7e7" align="left" valign="top"><img border="0" src="fileadmin/template/images/pfeil_menu.gif" width="21" height="22"></td><td width="1" background="fileadmin/template/images/strich_rot_senk.gif"><img border="0" src="fileadmin/template/images/transparent.gif" width="1" height="1"></td><td width="179" class="td_menutextaktiv" align="left" valign="top"> | </td><td width="1" background="fileadmin/template/images/strich_rot_senk.gif"><img border="0" src="fileadmin/template/images/transparent.gif" width="1" height="1"></td></tr><tr><td colspan="5" background="fileadmin/template/images/strich_rot_wag.gif"><img border="0" src="fileadmin/template/images/transparent.gif" width="1" height="1"></td></tr>
}
temp.menu_1.2 = TMENU
temp.menu_1.2 {
target = _top
NO.allWrap = <tr><td width="1" background="fileadmin/template/images/strich_rot_senk.gif"><img border="0" src="fileadmin/template/images/transparent.gif" width="1" height="1"></td><td width="201" bgcolor="#e7e7e7" colspan="3" height="20" class="td_submenu">» |</td><td width="1" background="fileadmin/template/images/strich_rot_senk.gif"><img border="0" src="fileadmin/template/images/transparent.gif" width="1" height="1"></td></tr><tr><td colspan="5" background="fileadmin/template/images/strich_rot_wag.gif"><img border="0" src="fileadmin/template/images/transparent.gif" width="1" height="1"></td></tr>
ACT = 1
ACT.allWrap = <tr><td width="1" background="fileadmin/template/images/strich_rot_senk.gif"><img border="0" src="fileadmin/template/images/transparent.gif" width="1" height="1"></td><td width="201" bgcolor="#e7e7e7" colspan="3" height="20" class="td_submenu_aktiv">» |</td><td width="1" background="fileadmin/template/images/strich_rot_senk.gif"><img border="0" src="fileadmin/template/images/transparent.gif" width="1" height="1"></td></tr><tr><td colspan="5" background="fileadmin/template/images/strich_rot_wag.gif"><img border="0" src="fileadmin/template/images/transparent.gif" width="1" height="1"></td></tr>
}
#Datum erzeugen
temp.Datum= COA
temp.Datum {
10 = TEXT
10.data = date:U
10.strftime = <b>%A,</b> %e. %B %Y
}
plugin.tx_automaketemplate_pi1 {
content = FILE
content.file = fileadmin/template/index.htm
elements {
BODY.all = 1
BODY.all.subpartMarker = DOCUMENT_BODY
HEAD.all = 1
HEAD.all.subpartMarker = DOCUMENT_HEADER
HEAD.rmTagSections = title
TD.all = 1
DIV.all = 1
}
relPathPrefix = fileadmin/template/
}
# Main TEMPLATE cObject for the BODY
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
template =< plugin.tx_automaketemplate_pi1
workOnSubpart = DOCUMENT_BODY
subparts.td_content < styles.content.get
subparts.td_datum < temp.Datum
subparts.td_banner < temp.bannertop
subparts.menu_1 < temp.menu_1
}
# 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
[/quote]