![]() |
| | LinkBack | Themen-Optionen | Thema bewerten | Ansicht |
|
#1
| |||
| |||
Hallo, ich habe schon vor einiger Zeit erfolgreich die Extension newloginbox eingebunden, so dass sie erwartungsgemäß funktioniert. Was mir allerdings nicht gelingt, ist die Änderung der Darstellung. Ich habe dazu eine externe CSS-Datei erstellt, die alle Formatierungen enthält. Aber irgendwie bekomme ich die nicht im TypoScript-Template eingebunden. Wo ist die richtige Stelle, um die Angaben in TypoScript zu speichern? Und wie müssen die aufgebaut sein (werde leider aus den Ergebnissen meiner Forensuche nicht schlau). Hier mein aktueller Code (gesamt) Code: # Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
# Read the template file:
content = FILE
content.file = fileadmin/template/main/index.htm
# Here we define which elements in the HTML that
# should be wrapped in subparts-comments:
elements {
BODY.all = 1
BODY.all.subpartMarker = DOCUMENT_BODY
HEAD.all = 1
HEAD.all.subpartMarker = DOCUMENT_HEADER
HEAD.rmTagSections = title
TD.all = 1
}
# Prefix all relative paths with this value:
relPathPrefix = fileadmin/template/main/
}
# Menu 1 cObject
temp.menu_1 = HMENU
# First level menu-object, textual
temp.menu_1.1 = TMENU
temp.menu_1.1 {
# Normal state properties
NO.allWrap = <h2> | </h2>
# Enable active state and set properties:
ACT = 1
ACT.allWrap = <h2> | </h2>
}
# Main TEMPLATE cObject for the BODY
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
# Feeding the content from the Auto-parser to the TEMPLATE cObject:
template =< plugin.tx_automaketemplate_pi1
# Select only the content between the <body>-tags
workOnSubpart = DOCUMENT_BODY
# Substitute the ###menu_1### subpart with dynamic menu:
subparts.menu_1 < temp.menu_1
# Substitute the ###content### subpart with dynamic text:
subparts.content < styles.content.get
# Substitute the ###links### subpart with dynamic text:
subparts.links= COA_INT
subparts.links.10 = CONTENT
subparts.links.10 {
table = tt_content
select.where = colPos = 1
select.orderBy = sorting
}
# Substitute the ###pagetitle### subpart with dynamic text:
marks {
PAGETITLE = TEXT
PAGETITLE {
field = title
}
}
# Substitute the ###LAST_UPDATE### subpart with dynamic text:
marks.LAST_UPDATE = TEXT
marks.LAST_UPDATE.field=SYS_LASTCHANGED
marks.LAST_UPDATE.date= d.m.Y
# Substitute the ###LOGIN### subpart with dynamic text:
marks.LOGIN < plugin.tx_newloginbox_pi1
plugin.tx_newloginbox_pi1._CSS_DEFAULT_STYLE = @import url("fileadmin/template/main/newloginbox.css")
# .tx-newloginbox-pi3-listrow TD { background-color:#eeeeee; padding-left: 1px; padding-right: 1px; }
# .tx-newloginbox-pi3-listrow = TR.tx-newloginbox-pi3-listrow-header TD { background-color:#00ff00; }
# .tx-newloginbox-pi3-listrow = TR.tx-newloginbox-pi3-listrow-header TD P { font-weight:bold; }
# .tx-newloginbox-pi3-listrow = TR.tx-newloginbox-pi3-listrow-odd TD { background-color:#00ff00; }
plugin.tx_newloginbox_pi1._LOCAL_LANG {
de {
oLabel_header_welcome = Login
oLabel_msg_welcome = Geben Sie den Ihnen mitgeteilten Nutzernamen und das Passwort ein.
oLabel_header_logout = Sie haben sich abgemeldet
oLabel_msg_logout = Sie haben sich abgemeldet
oLabel_header_error = Anmeldefehler
oLabel_msg_error = Bitte versuchen Sie es erneut
oLabel_header_success = Sie haben sich erfolgrreich angemeldet
oLabel_msg_success = Sie sind angemeldet als ###USER###
oLabel_header_status = Sie sind angemeldet als ###USER###
oLabel_msg_status =
username = Benutzername:
password = Passwort:
login = Login
logout = Abmelden
send_password = Passwort senden
your_email = Ihre Email-Adresse:
forgot_password = Passwort vergessen?
}
}
}
# Main TEMPLATE cObject for the HEAD
temp.headTemplate = TEMPLATE
temp.headTemplate {
# Feeding the content from the Auto-parser to the TEMPLATE cObject:
template =< plugin.tx_automaketemplate_pi1
# Select only the content between the <head>-tags
workOnSubpart = DOCUMENT_HEADER
}
# Default PAGE object:
page = PAGE
page.typeNum = 0
# Copying the content from TEMPLATE for <body>-section:
page.10 < temp.mainTemplate
# Copying the content from TEMPLATE for <head>-section:
page.headerData.10 < temp.headTemplate |
|
#2
| ||||
| ||||
| Hallo, die newloginbox hat doch ein eigenes Template das du direkt oder per CSS anpassen kannst. Schau mal in den Extension Ordner unter typo3conf/ext/newloginbox/res rein.
__________________ Gruss MD |
|
#3
| |||
| |||
| Ich habe leider keinen Ordner res ... Was nun? Kann ich das noch irgendwo her bekommen? |
|
#4
| ||||
| ||||
| Hallo, du hast auch die newloginbox installiert? Hast du vielleicht eine ältere Version dieser Extension installiert?
__________________ Gruss MD |
|
#5
| |||
| |||
| Ja, ich hatte in der Tat eine ältere Version installiert. Danke für den Hinweis, werde es jetzt mal mit dem HTML-Template probieren. |
|
#6
| |||
| |||
| Ok - das hat funktioniert. Wie bekomme ich es jetzt noch hin, dass die Texte nicht in Default-English ausgegeben werden, sondern meine deutschen Angaben angezeigt werden? Irgendwie werden meine Eingaben im Plug-in nicht akzeptiert. |
|
#7
| ||||
| ||||
| Hallo, das erreichst du mit den config.locale Einstellungen. Welche genau kommt auf dein System an aber teste mal diese hier sonst die Suche bemühen. Typoscript-Code:
__________________ Gruss MD |
![]() |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | Thema bewerten |
| |
Ähnliche Themen | ||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| Darstellung in IE7 Problem | b.mue | HTML & CSS | 1 | 30.04.08 17:04 |
| Darstellung im IE und FF unterschiedlich | aba2si | HTML & CSS | 2 | 06.04.08 18:45 |
| Problem mit der Darstellung | Panela | TYPO3 4.x Fragen und Probleme | 0 | 09.03.08 17:23 |
| Darstellung von tt_news-Datensätzen im Backend (Sortierung, Darstellung für Redakteure) | aktendully | TYPO3 4.x Backend | 0 | 07.03.08 13:12 |
| Newsmeldungen & Darstellung | chris26 | TYPO3 3.x Fragen und Probleme | 0 | 24.02.06 09:45 |