hi,
anscheinend stehe ich auf der leitung. ich habe die entsprechende datei hierher kopiert. wo genau muss ich die änderungen machen, dass folgende beschriftungen erscheinen: Schule, PLZ Ort, Kontakt E-mail und Bemerkungen?
gruss
markus
ext_typoscript_setup.txt :
## Includes the guestLib:
includeLibs.ts_guest = EXT:tt_guest/pi/class.tx_ttguest.php
## Sets up the fields, that may be submitted in order to create items. Mandatory!
FEData.tt_guest >
FEData.tt_guest {
processScript = EXT:tt_guest/pi/guest_submit.inc
processScript.notifyEmail = {$plugin.tt_guest.notifyEmail}
default {
hidden = 0
}
allowNew {
title = 1
note = 1
cr_name=1
cr_email=1
www=1
}
autoInsertPID = 1
doublePostCheck = doublePostCheck
}
## This enables the tt_content.list item to display the guestbook:
plugin.tt_guest >
plugin.tt_guest = USER
plugin.tt_guest {
userFunc = tx_ttguest->main_guestbook
templateFile = {$plugin.tt_guest.file.templateFile}
pid_list.field = pages
code.field = select_key
# Global wraps
wrap1.wrap = {$plugin.tt_guest.wrap1}
wrap2.wrap = {$plugin.tt_guest.wrap2}
color1.wrap = {$plugin.tt_guest.color1}
color2.wrap = {$plugin.tt_guest.color2}
color3.wrap = {$plugin.tt_guest.color3}
# Change/add to format the content:
age_stdWrap.age = 1
date_stdWrap.strftime= %e-%m-%y
time_stdWrap.strftime= %H:%M:%S
author_stdWrap.case = upper
www_stdWrap.typolink.parameter.field = www
email_stdWrap.typolink.parameter.field = cr_email
requireRecords = 1
# Change/add to format the submit-form
postform < styles.content.mailform
postform.data >
postform.dataArray {
10.label = Header:
10.type = *data[tt_guest][NEW][title]=input
20.label = Kommentar:
20.type = *data[tt_guest][NEW][note]=textarea
30.label = Name:
30.type = *data[tt_guest][NEW][cr_name]=input
40.label = Email:
40.type = *data[tt_guest][NEW][cr_email]=input
50.label = Schule:
50.type = *data[tt_guest][NEW][www]=input
60.type = formtype_db=submit
60.value = Add yourself
}
postform.no_cache=1
}
## This enables the tt_content.record item to display guestbook items:
tt_guest >
tt_guest = < plugin.tt_guest
tt_guest.displayCurrentRecord =
hi,
wie du siehst habe ich hier bereits eintragungen gemacht, welche sich aber nicht ausgewirkt haben.das habe ich zuallererst versucht...
gruss
markus
# Change/add to format the submit-form
postform < styles.content.mailform
postform.data >
postform.dataArray {
10.label = Header:
10.type = *data[tt_guest][NEW][title]=input
20.label = Kommentar:
20.type = *data[tt_guest][NEW][note]=textarea
30.label = Name:
30.type = *data[tt_guest][NEW][cr_name]=input
40.label = Email:
40.type = *data[tt_guest][NEW][cr_email]=input
==>50.label = Schule:
50.type = *data[tt_guest][NEW][www]=input
60.type = formtype_db=submit
60.value = Add yourself
}
postform.no_cache=1
}
ähm, ganz dumme frage: du hast gesagt, du hast das in der Datei editiert... ich vermute, daß ist die Datei, in der aufgelistet wird, was du alles mit typoscript konfigurieren kannst. hast du den geänderten code auch in dein Template eingebunden?? o.O
Also ich meine im Template-Record im BE?
ne das habe ich nicht. bevor ich meine version von typo3 upgedatet hatte, hatte ich folgendes im setup stehen. damit hat es funktioniert. mit der neuen typo3-version funkts aber nicht, deshalb habe ich es rausgenommen und mich erneut auf den weg gemacht. und jetzt klappts nicht mehr.
gruss
markus
ts:
#Veränderung im Gästebuch
plugin.tt_guest {
# Change Dateformat
date_stdWrap.strftime= %e.%m.%Y
time_stdWrap.strftime= %H:%M:%S
age_stdWrap.age = " Minuten| Stunden| Tage| Jahre"
# new guestbook entries have to be accepted from admin
# hidden = 1
postform.dataArray {
# Format of the input fields
# Fields which have to be filled out have to be sign with an * before data
10.type = *data[tt_guest][NEW][title]=input,60
20.type = *data[tt_guest][NEW][note]=textarea,60,6
30.type = data[tt_guest][NEW][cr_name]=input,60
40.type = data[tt_guest][NEW][cr_email]=input,60
50.type = data[tt_guest][NEW][www]=input,60
# change Textmessages Input
10.label = Schule:
20.label = Kommentar:
30.label = Ort:
40.label = Email:
50.label = Website:
60.type = formtype_db=submit
60.value = Eintrag senden
}
}
versuch doch erstmal nur:
plugin.tt_guest.postform.dataArray.10.label = Schule:
wenn das nicht geht, dann ist iergendwas faul.
hi,
habs ausprobiert. das geht nicht. ist wohl was faul...
vielleicht extension nochmal raushauen (also alle dazugehörigen dateien löschen) und vorher im be deinstallieren, nochmal installieren, ausprobieren.
Vielleicht liegt es daran, dass du ts_language_de installiert hast.
Bei mir hat's dann so funktioniert:
plugin.tt_guest.postform.dataArray {
10.label.lang.de= <SPAN class="xxx">neue Überschrift<SPAN>
}
hast du die editierten dokumente auch gespeichert und danach die caches gelöscht, bevor du die site refreshed hast?
gruß
SirVival