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
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 😃