---
title: "Datum vor content entry"
url: "https://www.typo3.net/d/56903-datum-vor-content-entry"
source: "typo3.net"
tags: ["Allgemein","Frage"]
created: "2007-01-28"
last_reply: "2007-01-31"
replies: 11
solved: false
page: 1
pages: 1
lang: "de"
---

# Datum vor content entry

Allgemein · 11 Antworten · gestartet 2007-01-28

## Eröffnungsbeitrag

**ptm** · 2007-01-28 · [Beitrag #1](https://www.typo3.net/d/56903-datum-vor-content-entry/1)

Hi,

wie kann man vor jedem content element ein Datum einblenden?

## Antworten

### [#2](https://www.typo3.net/d/56903-datum-vor-content-entry/2) · cope · 2007-01-28

Hallo ptm,

etwas spärliche Info....
Ich vermute Du möchtest das Datum der letzten Änderung eines Elements mit anzeigen?

Ich tät folgendes:

```typoscript
#------------------------------------------------------
# Für Datumsausgaben 
lib.tstamp = COA
lib.tstamp {
	10 = TEXT
	10.field = tstamp
	10.strftime=%d.%m.%Y
}
```

```typoscript
subparts.content = COA
	subparts.content {
    		10 = CONTENT
	    	10 < styles.content.get	    	
	    	10.renderObj.stdWrap.preCObject < lib.tstamp.10
	    	20 < temp.PDF
    	}
}
```

Meinst Du sowas?
Gruß
Cope

### [#3](https://www.typo3.net/d/56903-datum-vor-content-entry/3) · ptm · 2007-01-29

Ja sowas in der Richtung hab ich gemeint. Danke!

### [#4](https://www.typo3.net/d/56903-datum-vor-content-entry/4) · ptm · 2007-01-29

Und wie koennte man dem Datum noch eine CSS Klasse zuweisen? Ich probiere gerade etwas herum:

```typoscript
lib.tstamp = COA
lib.tstamp {
  5 = TEXT
  5.value = <div class="entry_date"><span>
  10 = TEXT
  10.field = tstamp
  10.strftime=%d.%m.%Y
  20 = TEXT
  20.value = </span></div>
}
```

funktioniert aber nicht... Ne idee?

### [#5](https://www.typo3.net/d/56903-datum-vor-content-entry/5) · cope · 2007-01-29

Hi

tust Du so tun

```typoscript
lib.tstamp = COA
lib.tstamp {
	10 = TEXT
	10.field = tstamp
	10.strftime=%d.%m.%Y
	10.wrap = <div class="entry_date"><span>|</span></div>
}
```

Tschö
Cope

### [#6](https://www.typo3.net/d/56903-datum-vor-content-entry/6) · ptm · 2007-01-30

Danke nochmal Cope. Jetzt hab ich ein neues Problem *g* Das Datum der letzten Aenderung wird nun ueberhaupt nicht mehr angezeigt:

```typoscript
# Für Datumsausgaben
#
lib.tstamp = COA
lib.tstamp {
  10.field = tstamp
  10.strftime=%d.%B.%Y
  10.wrap = <div class="entry_date"><span>|</span></div>
}

page.10 = TEMPLATE
page.10 {
  template = FILE
  template.file = fileadmin/template/blog.html

  workOnSubpart = DOCUMENT_BODY
  marks.MAIN_CONTENT = COA
  marks.MAIN_CONTENT {
    10 = CONTENT
    10 < styles.content.get
    10.renderObj.stdWrap.preCObject < lib.tstamp.10
  }
```

### [#7](https://www.typo3.net/d/56903-datum-vor-content-entry/7) · steffenk · 2007-01-30

nimm mal ein COA_INT statt ein COA

### [#8](https://www.typo3.net/d/56903-datum-vor-content-entry/8) · ptm · 2007-01-30

COA_INT liefert leider das gleiche Ergebnis

### [#9](https://www.typo3.net/d/56903-datum-vor-content-entry/9) · cope · 2007-01-31

Tjah....
was ist das jetzt? Ich habs bei mir ausprobiert und es gongte....
Vielleicht ist was im CSS strubbelig? Steht im HTML-QuellCode der ausgegebenen Seite nix drin oder ist das Datum dort nur nicht zu sehen?

Gruß
Cope

### [#10](https://www.typo3.net/d/56903-datum-vor-content-entry/10) · ptm · 2007-01-31

Es steht nichts im Quelltext. Weder Das Datum, noch der div Container...

### [#11](https://www.typo3.net/d/56903-datum-vor-content-entry/11) · Unbekannter Benutzer · 2007-01-31

Ja, wenn ich mir deinen Code angucke, dann fehlt ja auch die Hälfte...

So müsste es wieder klappen:

```typoscript
lib.tstamp = COA
lib.tstamp {
  10 = TEXT
  10.field = tstamp
  10.strftime=%d.%B.%Y
  10.wrap = <div class="entry_date"><span>|</span></div>
}
 
page.10 = TEMPLATE
page.10 {
  template = FILE
  template.file = fileadmin/template/blog.htm
 
  workOnSubpart = DOCUMENT_BODY
  marks.MAIN_CONTENT = COA
  marks.MAIN_CONTENT {
    10 < styles.content.get
    10.renderObj.stdWrap.preCObject < lib.tstamp
  }
```

Grüße

Christian

### [#12](https://www.typo3.net/d/56903-datum-vor-content-entry/12) · cope · 2007-01-31

und noch ne } hinten dran. Ich bin wohl schon betriebsblind.....
Grüße
Cope

---

Quelle: „Datum vor content entry“, typo3.net, https://www.typo3.net/d/56903-datum-vor-content-entry
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
