---
title: "Codesnippet: Grafische Rootline"
url: "https://www.typo3.net/d/33408-codesnippet-grafische-rootline"
source: "typo3.net"
tags: ["TYPO3","Menüs","Frage"]
created: "2005-11-17"
last_reply: "2007-05-12"
replies: 1
solved: false
page: 1
pages: 1
lang: "de"
---

# Codesnippet: Grafische Rootline

TYPO3 › Menüs · 1 Antwort · gestartet 2005-11-17

## Eröffnungsbeitrag

**Freshmeat** · 2005-11-17 · [Beitrag #1](https://www.typo3.net/d/33408-codesnippet-grafische-rootline/1)

Da ich schon mehrfach im Forum Lösungen für meine Probleme gefunden hab und möchte ich hier ein kleines Snippet für eine grafische Rootline reinstellen.

[Bild: gifasdata.ch/…/rootline_01.gif](http://www.gifasdata.ch/_temp/typo3/rootline_01.gif)

```typoscript
# ROOTLINE #---#
    ROOTLINE {

      10 = HMENU
      10 {

        special = rootline
        special.range = 2|-1

        1 = GMENU
        1.NO {
          XY = 20+[30.w],30
          backColor = #FFFFFF
          transparentColor = #FFFFFF

          # TEXT AUF BILD RENDERN
          30 = TEXT
          30 {
            text.field = title
            fontColor = #000000
            fontFile = fileadmin/fonts/FUTURAH.TTF
            fontSize = 17
            spacing = 0
            offset = 1,20
            niceText = 1
            antiAlias = 0
          } // ENDE 30

          # DOPPELPFEIL-RECHTS AUF BILD RENDERN
          40 = TEXT
          40 {
            text = »|*| » |*| |*|
            fontColor = #000000
            fontFile = fileadmin/fonts/FUTURAH.TTF
            fontSize = 17
            spacing = 0
            offset = [30.w]+8,20
            niceText = 1
            antiAlias = 0
          } // ENDE 40
        } // ENDE 1.NO

        1.RO = 1
        1.RO < .1.NO
        1.RO {
          # TEXT AUF BILD RENDERN
          30 = TEXT
          30 {
            fontColor = #3F4B1D
            } // ENDE 30
          } // ENDE 1.RO

      } // ENDE 10
    } // ENDE ROOTLINE
```

## Antworten

### [#2](https://www.typo3.net/d/33408-codesnippet-grafische-rootline/2) · gkahr · 2007-05-12

Das hat mir sehr geholfen. Hier eine leicht abgewandelte Variante, bei der nur zwei Ebenen angezogen werden und die erste Ebene eine andere Farbe hat als die nachfolgenden.

```typoscript
rootline = HMENU
rootline {
   special = rootline
   special.range = 1|3
 
   1 = GMENU
   1.NO {
         XY = 20+[30.w],30
         backColor = #FFFFFF
          
         30 = TEXT
         30 {
            text.field = title
            fontColor = #B5B5B5 |*| #B5B5B5 |*| #42A7CC
            fontFile = fileadmin/templates/ren/VERDANA.TTF
            fontSize = 17
            spacing = 0
            offset = 1,20
            niceText = 1
            antiAlias = 1
         } 
          			
         40 = TEXT
         40 {
            text =  /|*|/|*| |*|
            fontColor = #B5B5B5 
            fontFile = fileadmin/templates/ren/VERDANA.TTF
            fontSize = 17
            spacing = 0
            offset = [30.w]+8,20
            niceText = 1
            antiAlias = 1
         } 
      } 
}
```

---

Quelle: „Codesnippet: Grafische Rootline“, typo3.net, https://www.typo3.net/d/33408-codesnippet-grafische-rootline
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
