---
title: "class in href"
url: "https://www.typo3.net/d/77791-class-in-href"
source: "typo3.net"
tags: ["TYPO3","TypoScript","Frage"]
created: "2008-05-28"
last_reply: "2008-05-28"
replies: 3
solved: false
page: 1
pages: 1
lang: "de"
---

# class in href

TYPO3 › TypoScript · 3 Antworten · gestartet 2008-05-28

## Eröffnungsbeitrag

**mike_sebaro** · 2008-05-28 · [Beitrag #1](https://www.typo3.net/d/77791-class-in-href/1)

Hallo

ich bin gerade auf der suche wie ich eine link eine classe zuweisen kann.

Das ganze soll im endeffkt so aussehn:

<a href="#" class="example">This is a link</a>

Hab leider bis jetzt noch nichts gefunden,
könnt ihr mir da auf die Sprünge helfen.

Mfg Mike
~

## Antworten

### [#2](https://www.typo3.net/d/77791-class-in-href/2) · just2b · 2008-05-28

wie erstellst du den link?

### [#3](https://www.typo3.net/d/77791-class-in-href/3) · mike_sebaro · 2008-05-28

hier mein typoscript,
nur das allwrap stimmt nicht ...

```typoscript
SUBNAVIGATION = HMENU
	SUBNAVIGATION.entryLevel = 1
	SUBNAVIGATION.1 = TMENU
	SUBNAVIGATION.1.NO {
		allWrap = <div class="NO"><div> | </div></div>
	}

	SUBNAVIGATION.1.ACT = 1
	SUBNAVIGATION.1.ACT {
		#allWrap = <div class="ACT"><div> | </div></div>
	}
```

### [#4](https://www.typo3.net/d/77791-class-in-href/4) · einpraegsam.​net · 2008-05-28

ATagParams ist dein Stichwort

TSREF:
<https://docs.typo3.org/m/typo3/reference-typoscript/main/en-us/Functions/Typolink.html>

---

Quelle: „class in href“, typo3.net, https://www.typo3.net/d/77791-class-in-href
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
