---
title: "ATagParams für Seiteninhalte"
url: "https://www.typo3.net/d/2298-atagparams-fuer-seiteninhalte"
source: "typo3.net"
tags: ["TYPO3","TypoScript","Frage","Links"]
created: "2003-04-22"
last_reply: "2003-04-23"
replies: 1
solved: false
page: 1
pages: 1
lang: "de"
---

# ATagParams für Seiteninhalte

TYPO3 › TypoScript · 1 Antwort · gestartet 2003-04-22

## Eröffnungsbeitrag

**stefan s** · 2003-04-22 · [Beitrag #1](https://www.typo3.net/d/2298-atagparams-fuer-seiteninhalte/1)

hallo,
meine seiteninhalte (meist typ text) editiere ich im RTE. wenn ich dort ein Wort markiere und auf Link einfügen klicke, sollte diesem Link automatisch class="textlink" zugewiesen werden. wird aber nicht.

hier meine Einstellungen:

ich habe in meinem css folgendes festgelegt:

> a.textlink, a.textlink:visited,a.textlink:link, .textlink {
> 		font-family:verdana, arial, helvetica, sans-serif;
> 		color:#808080;
> 		font-size:12px;
> 		text-decoration:none;
> }
> a.textlink:hover {
> 	font-family : Verdana, Arial, Helvetica, sans-serif;
> 	font-size: 12px;
> 	color: #808080;
>                 text-decoration: underline;
> }

template, setup

> ...
> ###Inhalt
>    marks.Inhalt < styles.content.get
>    marks.Inhalt.wrap= <!--TYPO3SEARCH_begin-->|<!--TYPO3SEARCH_end-->
> #   marks.Inhalt.ATagBeforeWrap = 1
>    marks.Inhalt.ATagParams = class="textlink"
> ...

für menüs scheints ja zu klappen, für Texte (bei mir) nicht.
kann mir da jemand helfen?

danke
stefan

## Antworten

### [#2](https://www.typo3.net/d/2298-atagparams-fuer-seiteninhalte/2) · stefan s · 2003-04-23

tja, die lösung stand im Modern Template Building Part 1, S. 46:

> Adds more complex TypoScript properties and gives less flexibiliy in the stylesheet. For instance if you want to control the appearance of the link from CSS in this case you can use
> 	A.menu1-level1-no { color: navy; }
> 	A.menu1-level1-no:hover { color: red; }
>
> ... but you cannot control the wrapping <div>-element since that is not tagged with the any class or id! If you just stuck to the original way where the <a>-element had no class attribute, but the <div>-element had, then you could control both the <div>-layer and all links inside of it:
> 	DIV.menu1-level1-no  { padding: 2px 2px 2px 2px; }
> 	DIV.menu1-level1-no  A { color: navy; }
> 	DIV.menu1-level1-no  A:hover { color: red; }

ergo: mein css wie oben abgewandelt und im Template anstelle von

> marks.Inhalt.ATagParams = class="textlink"

einfach marks.Inhalt.wrap = <div class=textlink> | </div>

wieder was gelernt und die gute laune auf Höchstniveau gebracht  :D

---

Quelle: „ATagParams für Seiteninhalte“, typo3.net, https://www.typo3.net/d/2298-atagparams-fuer-seiteninhalte
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
