Hallo zusammen,
ich habe hier ein ganz merkwürdiges Problem, und zwar soll in meinem Contentbereich die Schriftart Arial benutzt werden, habe auch die .ttf mit den fileadmin hochgeladen und spreche dieses File auch an. Aber trotzdem ist die Schrift die er mir anzeigt niemals Arial.
Nun das komische, in meinem Menü benutzt er wirklich die Schrift Arial.
Wie kann das angehen, hat jemand eine Idee für mich?
Ich Danke schon mal im Voraus.
Grüße Thomas
Moin mal wieder.
Tip:
Am besten immer gleich mal den entsprechenden Setup-Code mit hier her posten.. denn nur durch raten wird das gaaaaaaaaaaaaaaaaaaaanz schoen lange dauern bis es funktioniert 😉
(ich brauch mehr kaffee..)
Moin,
oh sorry ganz vergessen den Code zu posten war scho spät gestern:
### Content ###
CONTENT = CONTENT
CONTENT {
table = tt_content
select.orderBy = sorting
select.where = colPos = 0
# XY = 476,500
tt_content = CASE
tt_content {
# key.field = header_layout
1 = COA
1 {
wrap = <table border="0"> | </table>
10 = TEXT
10.fontSize = 10
# 10.fontFile = fileadmin/fonts/vera.ttf
10.field = header
# 10.wrap = <tr><td bgcolor="silver"><b> | </b></td></tr>
10.offset = 5,0
20 = TEXT
20.field = bodytext
20.wrap = <tr><td> | </td></tr>
}
default = COA
default {
wrap = <table border="1"><tr><td> | </td></tr></table>
10 = TEXT
10.fontSize = 10
# 10.fontFile = fileadmin/fonts/vera.ttf
10.filed = header
10.wrap = <b> | </b><br>
10.offset = 5,0
20 = TEXT
20.field = bodytext
Bei meinem Template sieht der Content Abschnitt folgend aus:
<TR>
<TD vAlign=top width="200"align=right height="550" bgColor="#666666">###MENU_LINKS###</TD>
<TD vAlign=top align=left bgColor="#CCCCCC" width="5"> </TD>
<TD vAlign=top bgColor="#CCCCCC" cellpadding=2 cellspacing="2" border="2" width="588"><BR>
###CONTENT###</TD>
<TD vAlign=top align=right bgColor="#999999">###RECHTS###</TD>
</TR>
Gruß Thomas
hallo thomasju
das wirst du wohl mit css lösen müssen
und zwar so
page = PAGE
page {
typeNum = 0
stylesheet = fileadmin/css/deine.css
######################
#Die Designvorlage integrieren #
#####################
10 = TEMPLATE
10.template = FILE
10.template.file = fileadmin/templates/dein.tmpl
10.workOnSupbarts = DOKUMENT
##################################
#Den Platzhalter CONTENT und RECHTS ansprechen#
#################################
10.marks {
CONTENT = CONTENT
CONTENT {
wrap = <span class="content">|</span>
table = tt_content
select {
where = colPos = 0
orderBy = sorting
languageField = sys_language_uid
}
}
RECHTS = CONTENT
RECHTS {
wrap = <span class="content">|</span >
table = tt_content
select {
where = colPos = 2
orderBy = sorting
languageField = sys_language_uid
}
}
}
und die css kann so aussehen
/*content*/
.content { color: #000000; font-family: Arial ; font-size: 12px; text-decoration: none;margin: 0 0 0 0; }
.content a:link { color: #FF9900; font-family: Arial ; font-size: 12px; text-decoration: none; }
.content a:visited { color: #FF9900; font-family: Arial ; font-size: 12px; text-decoration: none; }
.content a:active { color: #FF9900; font-family: Arial ; font-size: 12px; text-decoration: none; }
.content a:hover { color: #FF9900; font-family: Arial ; font-size: 12px; text-decoration: none; }
.content H { color: #000000; font-family: Arial ; font-size: 12px; text-decoration: none; font-weight: bold; margin: 0 0 0 0;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;padding-top: 0px }
.content H1 { color: #000000; font-family: Arial ; font-size: 12px; text-decoration: none; font-weight: bold; margin: 0 0 0 0;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;padding-top: 0px }
.content H2 { color: #000000; font-family: Arial ; font-size: 12px; text-decoration: none; font-weight: bold; margin: 0 0 0 0; }
.content H3 { color: #000000; font-family: Arial ; font-size: 12px; text-decoration: none; font-weight: bold; margin: 0 0 0 0; }
.content H4 { color: #000000; font-family: Arial ; font-size: 12px; text-decoration: none; font-weight: bold; margin: 0 0 0 0; }
.content H5 { color: #000000; font-family: Arial ; font-size: 12px; text-decoration: none; font-weight: bold; margin: 0 0 0 0; }
.content H6 { color: #000000; font-family: Arial ; font-size: 12px; text-decoration: none; font-weight: bold; margin: 0 0 0 0; }
.content TD { color: #000000; font-family: Arial ; font-size: 12px; text-decoration: none; }
.content P {color: #000000;font-family: Arial ;font-size: 12px;text-decoration: none;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;padding-top: 0px;margin: 0 0 30 0;}
.content ul {color: #000000;font-family: Arial ;font-size: 12px;text-decoration: none;margin: 0 0 30 0;}
.content br {color: #000000;font-family: Arial ;font-size: 12px;text-decoration: none;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;padding-top: 0px;margin: 0 0 0 0;}
ich hoffe, dass ich dir helfen konnte
gruß
chris
Hallo chris,
ich werde es auf jeden Fall einmal versuchen. Wie ist denn das mit den css, könnte ich auch dein Beispiel nehmen und das erstmal benutzen, dann je nachdem wie ich es brauche, nachträglich anpassen oder würdest du mir davon abraten? Und wenn wie komme ich denn sonst noch an eine sauber .css Datei, wenn ich die nicht unbedingt selbst schreiben möchte?
Geholfen hast du mir auf jeden Fall, ich freue mich über jeden Denkansatz der mich weiter bringen könnte.
Gruß Thomas
hallo thomasju
du kannst meine css verwenden
so wie ich das sehe verwendest du auch ###CONTENT### und ###RECHTS### in deiner vorlage
also passt das typoscript auch
gruß
chris
Hallo Chris,
ah super ich danke dir, werde es mal testen. Hoffentlich klappt das auch.
Gruß
Thomas
Hallo grisup,
habe mal dein css benutzt.
Funkt auch bis auf eine Kleinigkeit.
Ist es möglich die Textfarbe im Inhalt und die Tesxtfarbe drumherum anders zu gestalten. Also Inhalt schwarz und aussen weiß.
Besser zu sehen unter www.berlineramateure.de
Danke
Hallo Suse,
nichts für ungut, aber du solltest dir anschauen, wie css funktioniert, es ist gar nicht so schwer!
schriftfarbe wird mit color: #HEXWERT definiert
hintergrundfarbe zB mit background-color: #HEXWERT
usw.
viel erfolg!
georg
Ja, das ist auch nicht das Problem. Aber es kommt auf den Bereich an, wo er es machen soll.
Gebe ich die Schriftfarbe an, so macht er es im Inhalt UND ausserhalb davon. Und diese beiden Bereiche möchte ich farblich trennen.
Wie gesagt, blöd zu beschreiben. Sehe dir es an und du wirst sehen was ich meine.
www.berlineramateure.de
Gruß Suse
Hallo,
sorry hatte wochenende keine zeit!
du meinst doch den text "herzlich willkommen...." oder?
#myDivTag {
color: green;
background-color: red;
}
wenns das nicht ist, meld dich doch bitte über icq, dann geht das etwas schneller
georg
Hallo just2b,
ich meine den Bereich unter dem Inhalt, also die Besucherzahl und das Datum. Habe versucht es über CSS zu machen, da hat sich aber die Textfarbe vom Inhaltsbereich mit verändert. Im TS geht es auch nicht, da jetzt wohl das CSS greift. Habe noch keine Lösung gefunden.
Gruß Suse