---
title: "Copyright mit aktueller Jahreszahl"
url: "https://www.typo3.net/d/35298-copyright-mit-aktueller-jahreszahl"
source: "typo3.net"
tags: ["TYPO3","TypoScript","Tipp"]
created: "2005-12-23"
last_reply: "2005-12-23"
replies: 1
solved: false
page: 1
pages: 1
lang: "de"
---

# Copyright mit aktueller Jahreszahl

TYPO3 › TypoScript · 1 Antwort · gestartet 2005-12-23

## Eröffnungsbeitrag

**einpraegsam.​net** · 2005-12-23 · [Beitrag #1](https://www.typo3.net/d/35298-copyright-mit-aktueller-jahreszahl/1)

Ist zwar nichts besonderes aber wer gerne eine dynamische Jahreszahl im Copyright haben will:

```typoscript
page.10.marks.copy = COA
page.10.marks.copy.10 = HTML
page.10.marks.copy.10.value =  &copy;&nbsp;2000-
page.10.marks.copy.20 = TEXT
page.10.marks.copy.20.data = date:U
page.10.marks.copy.20.strftime = %Y&nbsp;
page.10.marks.copy.30 = HTML
page.10.marks.copy.30.value = <a href="test.de">bla</a>
```

10 ist der Text vor der Jahreszahl
20 ist die Jahreszahl
und 30 der Text danach

Weihnachtsgrüße aus Nürnberg

## Antworten

### [#2](https://www.typo3.net/d/35298-copyright-mit-aktueller-jahreszahl/2) · FalkWalter · 2005-12-23

Hallo wunschtacho,

versuchs mal damit, die Konstanten kannst Du natürlich auch gerne hardcoden:

```typoscript
#Builds copyright remark with current date
# Needed Constants:
# - yearWebSiteCreation = int (Year of Web site creation)
# - copyrightOwner = string (Copyright owner of Web Site)

page.10.marks.copy {
10 = HTML
10.value = copy {$yearWebSiteCreation} #"&....;" um die HTML-Entity
20 = TEXT
20.data = date:Y
30 = HTML
30.value = nbsp #"&....;" um die HTML-Entity
40 = TEXT
40.value = {$copyrightOwner_lang}
}
```

Grüßle
Falk

---

Quelle: „Copyright mit aktueller Jahreszahl“, typo3.net, https://www.typo3.net/d/35298-copyright-mit-aktueller-jahreszahl
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
