---
title: "last update"
url: "https://www.typo3.net/d/17613-last-update"
source: "typo3.net"
tags: ["Allgemein","Frage"]
created: "2004-11-03"
last_reply: "2004-11-04"
replies: 7
solved: false
page: 1
pages: 1
lang: "de"
---

# last update

Allgemein · 7 Antworten · gestartet 2004-11-03

## Eröffnungsbeitrag

**rene04** · 2004-11-03 · [Beitrag #1](https://www.typo3.net/d/17613-last-update/1)

hallo,

habe dies hier versucht zu realisieren :
<http://www.typo3-for-the.net/index.php?id=168&cat=2&glossary=19>

leider steht in meiner website dann nur : lastupdate

was kann da falsch sein ? die zeilen habe ich per drag und drop eingefügt.

constants :

styles.content.lastUpdate.label = Die Seite wurde zuletzt bearbeitet am:
styles.content.lastUpdate.comment_auto =
styles.content.lastUpdate.wrap = &ltdiv class="lastupdate"> | </div>
styles.content.lastUpdate.format = l, F, j,Y

setup:

# Configuring the Auto-Parser:

plugin.tx_automaketemplate_pi1 {

# Read the template file:
  content = FILE
  content.file = fileadmin/template/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/template/
}

# 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 = <div class="menu1-level1-no"> | </div>

# Enable active state and set properties:
  ACT = 1
  ACT.allWrap = <div class="menu1-level1-act"> | </div>
}

# Second level menu-object, textual

temp.menu_1.2 = TMENU
temp.menu_1.2 {

# Normal state properties
  NO.allWrap = <div class="menu1-level2-no"> | </div>

# Enable active state and set properties:
  ACT = 1
  ACT.allWrap = <div class="menu1-level2-act"> | </div>
}

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

# 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

#PAGE LAST UPDATE
    subparts.LASTUPDATE = TEXT
    subparts.LASTUPDATE {
    data = page:lastUpdated
    date = d.m.Y
    wrap = Page updated:  |
    data = register : SYS_LASTCHANGED
    if>
    }
}

# 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

gruesse rene

## Antworten

### [#2](https://www.typo3.net/d/17613-last-update/2) · SLAng · 2004-11-03

Vielleicht ist schon das hier der Fehler:

```typoscript
styles.content.lastUpdate.wrap = &ltdiv class="lastupdate"> | </div>
```

tausch das &lt mal gegen eine "<" aus...

im übrigen schreibt man das so: &lt;

### [#3](https://www.typo3.net/d/17613-last-update/3) · rene04 · 2004-11-04

habe es geändert. hat aber nichts verändert :(
also besteht das problem weiterhin. und ich habe so gehofft das es das schon wäre.

gruesse rene

### [#4](https://www.typo3.net/d/17613-last-update/4) · Dander · 2004-11-04

und im html-template??

### [#5](https://www.typo3.net/d/17613-last-update/5) · rene04 · 2004-11-04

```html
<tr>
		<td colspan="2" id="footer">
			<p>SIEDA GmbH * Bismarckstraße 2a * 67655 Kaiserslautern</p>
			
			<!-- LASTUPDATE -->
            <!-- ###SYS_LASTCHANGED### -->
            <DIV class="xxx"> lastupdate </DIV>
            <!-- ###SYS_LASTCHANGED### -->
		</td>
	</tr>
```

gruesse rene

### [#6](https://www.typo3.net/d/17613-last-update/6) · jenses · 2004-11-04

Hallo rene04!
Wenn du das von dir genannte Beispiel 1-zu-1 umgestzt hast,
ist es kein Wunder, daß es bei dir nicht funktioniert,
da das Beispiel fehlerhaft ist.
Versuch es mal so:

```typoscript
#PAGE LAST UPDATE 
subparts.SYS_LASTCHANGED = TEXT 
subparts.SYS_LASTCHANGED { 
data = page:lastUpdated 
date = d.m.Y 
wrap = Page updated: | 
data = register : SYS_LASTCHANGED 
if> 
}
```

viele Grüße
jenses

### [#7](https://www.typo3.net/d/17613-last-update/7) · burna · 2004-11-04

kurze zwischenfrage, für was steht denn das "register:" ?
damit funktionierte es nämlich bei mir nicht, nur mit "field = SYS_LASTCHANGED".

mfg,
burna

### [#8](https://www.typo3.net/d/17613-last-update/8) · rene04 · 2004-11-04

yeah. hat geklappt.

thx

gruesse rene

---

Quelle: „last update“, typo3.net, https://www.typo3.net/d/17613-last-update
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
