---
title: "Static News Portal aber wie... ?"
url: "https://www.typo3.net/d/72320-static-news-portal-aber-wie"
source: "typo3.net"
tags: ["Allgemein","Frage","Templates & Layouts","tt_news"]
created: "2008-01-10"
last_reply: "2008-01-11"
replies: 5
solved: false
page: 1
pages: 1
lang: "de"
---

# Static News Portal aber wie... ?

Allgemein · 5 Antworten · gestartet 2008-01-10

## Eröffnungsbeitrag

**Nolis** · 2008-01-10 · [Beitrag #1](https://www.typo3.net/d/72320-static-news-portal-aber-wie/1)

Hallo,
hab nun meine ersten gehversuche mit Typo 3 geschafft und berreits eine Seiten mit hilfe von Tutorials umgesetzt. Die Seite besteht aus einem Dynamischen Menü sowie Dynamischen Content und basiert auf einer HTML Template Seite, realisiert mit dem automaketemplate plugin.

Nun möchte ich einen statischen News Table auf der linken Seite einrichten, der auf jeder Unterseite zu sehen ist. (Eigentlich ist das ja recht einfach, also einfach den Table im Template rein und schon ist er immer zu sehen.. jedoch kann man Ihn dann nicht über Typo 3 ändern .. ist ja klar so weit)

Wie kann ich nun diesen Table der in meinem Template die ID=news hat, auch mit News füllen ? Der rechte Table (ID=content) funktioniert ja berreits einwandfrei...

Hier der link zum Screen um euch zu zeigen wie das dann aussehen soll (Blau eingezeichnet ist nun der News Table der bisher noch nicht funktioniert)
[Bild: evenin.com/…/screen.jpg](http://www.evenin.com/gernot/screen.jpg)

Hier mein Setup:
# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
    # Read the template file:
  content = FILE
  content.file = fileadmin/templates/main/template_1.html
    # Here we define which elements in the 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/templates/main/
}

# Menu 1 cObject
temp.menu_1 = HMENU
  # First level menu-object, textual
temp.menu_1.1 = TMENU
temp.menu_1.1 {
    # Normal state properties
  NO.allWrap = <a class="menu1-level1-no"> | </a> /
    # Enable active state and set properties:
  ACT = 1
  ACT.allWrap = <a class="menu1-level1-act"> | </a> /
}
  # Second level menu-object, textual
temp.menu_1.2 = TMENU
temp.menu_1.2 {
    # Normal state properties
  NO.allWrap = <a class="menu1-level2-no"> | </a> /
    # Enable active state and set properties:
  ACT = 1
  }

# Main TEMPLATE cObject for the BODY
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
    # Feeding the content from the Auto-parser 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
# Substitute the ###content### subpart with some example content:
subparts.content < styles.content.get
# Substitute the ###content### subpart with some example content:
subparts.news < styles.news.get
}

# 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

## Antworten

### [#2](https://www.typo3.net/d/72320-static-news-portal-aber-wie/2) · just2b · 2008-01-10

Hallo und willkommen im Forum,

1. Kommentar von mir hier: [/faq/content-ausgeben](https://www.typo3.net/faq/content-ausgeben)

### [#3](https://www.typo3.net/d/72320-static-news-portal-aber-wie/3) · Nolis · 2008-01-10

Halles klar hab das nun erstmal ausprobiert, jedoch komm ich da trotzdem nicht weiter.. hier der Screenshot des Template..

[Bild: evenin.com/…/screen_neu.jpg](http://www.evenin.com/gernot/screen_neu.jpg)

Den News Text hab ich nun auf Left gesetzt...

Hier das erneute Setup:

Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
    # Read the template file:
  content = FILE
  content.file = fileadmin/templates/main/template_1.html
    # Here we define which elements in the 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/templates/main/
}

# Menu 1 cObject
temp.menu_1 = HMENU
  # First level menu-object, textual
temp.menu_1.1 = TMENU
temp.menu_1.1 {
    # Normal state properties
  NO.allWrap = <a class="menu1-level1-no"> | </a> /
    # Enable active state and set properties:
  ACT = 1
  ACT.allWrap = <a class="menu1-level1-act"> | </a> /
}
  # Second level menu-object, textual
temp.menu_1.2 = TMENU
temp.menu_1.2 {
    # Normal state properties
  NO.allWrap = <a class="menu1-level2-no"> | </a> /
    # Enable active state and set properties:
  ACT = 1
  }

# Main TEMPLATE cObject for the BODY
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
    # Feeding the content from the Auto-parser 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
# Substitute the ###content### subpart with some example content:
subparts.content < styles.content.get
# Substitute the ###content### subpart with some example content:
subparts.news < styles.news.get
}

# 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
}

INHALT_RAND = CONTENT
                        INHALT_RAND {
                                table = tt_content
                                select {
                                        where = colPos = 1
                                        orderBy = sorting
                                        languageField = sys_language_uid
                                }
                        }

# 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

### [#4](https://www.typo3.net/d/72320-static-news-portal-aber-wie/4) · Nolis · 2008-01-10

Hier noch einige Screen Shots um das besser darstellen zu können wie mein Backend sowie das Frontend aussieht...

[Bild: evenin.com/…/1.jpg](http://www.evenin.com/gernot/1.jpg)

[Bild: evenin.com/…/2.jpg](http://www.evenin.com/gernot/2.jpg)

### [#5](https://www.typo3.net/d/72320-static-news-portal-aber-wie/5) · Michaelh74 · 2008-01-11

Also ich gehe mal davon aus, daß das hier nicht stimmen kann:

```typoscript
subparts.news < styles.news.get
```

ändere das mal um in

```typoscript
subparts.news < styles.content.getLeft
```

Das Dein News Plugin ja in der linken Contentspalte ist.

Gruß
Michael

### [#6](https://www.typo3.net/d/72320-static-news-portal-aber-wie/6) · Dander · 2008-01-11

bzw. so :

subparts.news < plugin.tt_news

für die konfiguration:

[/d/7366-news-an-bestimmter-stelle-einfuegen](https://www.typo3.net/d/7366-news-an-bestimmter-stelle-einfuegen)

oder das News Manual

---

Quelle: „Static News Portal aber wie... ?“, typo3.net, https://www.typo3.net/d/72320-static-news-portal-aber-wie
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
