Zum Inhalt springen

News-Teaser = Extra Template?

Erstellt am 23. März 2004 · Noch keine Antworten

Tags: Frage

Marc Wittenbrink ·

Hallo!

Bin, was Typo3 angeht, noch recht unerfahren.

Bin gerade an einer Site, in der auf der Startseite Newsteaser angezeigt werden wollen. Auf den anderen Seiten sollen die nicht auftauchen.

Die Newsteaser sollen im Border-Column angezeigt werden, also ganz rechts. Nur wie kriege ich die dahin? Bis jetzt stehen die unter den anderen Content-Elementen...
http://web32.s115.typo3server.com/

Constants:

# News-Plugin Einstellungen

plugin.tt_news {
    file.templateFile = fileadmin/templates/news.html
    wrap1 = <font color="#999999">|</font>
    wrap2 = <font color="#000000">|</font>
    color1 = #999999
    color2 = #004263
    PIDitemDisplay = 11
}

Setup:

temp.mainTemplate = TEMPLATE
temp.mainTemplate {
    template = FILE
    template.file = fileadmin/templates/template02.html
}


# Default page object
page = PAGE
page.typeNum = 0

page.bodyTag = <body bgcolor="#ffffff" marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" style="background-image: url(fileadmin/templates/images/site_bg.gif); background-repeat: repeat-y;">

page.10 < temp.mainTemplate

page.10.marks.CONTENT = CONTENT
page.10.marks.CONTENT.table = tt_content

page.15 < styles.content.getLeft
page.20 < styles.content.getRight
page.25 < styles.content.getBorder


#News Plugin
plugin.tt_news {

  archiveTypoLink.parameter = 10
  limit = 5
  displayList {
    image.file.maxW = 100
    imageWrapIfAny (
      <table align="left" bgcolor="#AAAAAA" cellpadding="1"
             cellspacing="0" border="0">
      <tr><td>
      <table bgcolor="#EEEEEE" cellpadding="0"
             cellspacing="0" border="0">
      <tr><td> | </td></tr>
      </table>
      </td></tr>
      </table>
    )
  }

  displaySingle {
    image.file.maxW = 160
    imageWrapIfAny (
      <table align="left" bgcolor="#AAAAAA" cellpadding="1"
             cellspacing="0" border="0">
      <tr><td>
      <table bgcolor="#EEEEEE" cellpadding="0"
             cellspacing="0" border="0">
      <tr><td> | </td></tr>
      </table>
      </td></tr>
      </table>
    )

    image.wrap (
      | <br>
      <img src="clear.gif" width="1" height="3">
    )
    caption_stdWrap.wrap (
      <div align="center">
      <font face=verdana size=1>
      <i>|</i>
      </font>
      </div>
      <img src="clear.gif" width="1" height="5"><br>
    )
  }
}

Bin verzweifelt,
Marc