---
title: "Banner marker in Template einbinden"
url: "https://www.typo3.net/d/88395-banner-marker-in-template-einbinden"
source: "typo3.net"
tags: ["Allgemein","Frage","Templates & Layouts"]
created: "2009-03-29"
last_reply: "2009-03-30"
replies: 3
solved: false
page: 1
pages: 1
lang: "de"
---

# Banner marker in Template einbinden

Allgemein · 3 Antworten · gestartet 2009-03-29

## Eröffnungsbeitrag

**Germanius** · 2009-03-29 · [Beitrag #1](https://www.typo3.net/d/88395-banner-marker-in-template-einbinden/1)

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

```typoscript
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

```html
<!-- ###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:

```html
<!--###s2z5s22### begin -->

<!-- ###bannertop### -->

<!--###s2z5s22### end -->
```

Was mach ich falsch? Wäre schön, wenn mir jemand helfen könnte. Danke

## Antworten

### [#2](https://www.typo3.net/d/88395-banner-marker-in-template-einbinden/2) · SLAng · 2009-03-30

Jo, da fehlt auch nen bischen was... Dein Page-Object fehlt doch komplett.

Also

```typoscript
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

```typoscript
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
```

### [#3](https://www.typo3.net/d/88395-banner-marker-in-template-einbinden/3) · Germanius · 2009-03-30

Habe

```typoscript
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

```html
<!-- ###s2z5s22### -->
```

in mein Template geschrieben.

Ausgegeben wird jetzt auf der richtigen Seite folgendes:

```html
<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&amp;no_cache=1&amp;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&amp;no_cache=1&amp;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?!

### [#4](https://www.typo3.net/d/88395-banner-marker-in-template-einbinden/4) · Germanius · 2009-03-30

Na gut, manchmal bin ich glaub ich auch einfach nur zu blöd  #giggle#

Man sollte es im Template mal mit

```html
###s2z5s22###
```

probieren. Nun scheint es auch zu funktionieren.

Danke für die Hilfe.

---

Quelle: „Banner marker in Template einbinden“, typo3.net, https://www.typo3.net/d/88395-banner-marker-in-template-einbinden
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
