[Typo3-UG Stuttgart] fe_admin_fe_users
Albrecht Haug
adtjd_remove_from_underline at yahoo.de
Wed Apr 9 08:54:28 CEST 2003
Hallo Tanja,
du mußt noch im Template ein paar Dinge einstellen. Zu dieser Extension
gehört das Template feuser_admin. Dort sind die Fehlermeldungen für die
diversen Felder angegeben. Dieses Template mußt du erweitern. Such z.B. nach
dem Text "username" und verwende die Einstellungen hierfür als Basis für
deine Erweiterungen.
Die Erweiterungen könnten dann ungefähr so aussehen (jeweils Werte für
"Country" hinzugefügt).
plugin.feadmin.fe_users.create.required =
username,password,name,email,country
plugin.feadmin.fe_users.evalErrors {
password.twice = You must enter the password twice.
password.atLeast = There must be at least %s characters in your
password!
email.email = The email address is not validly formed. Must contain @
and a domain
username.uniqueLocal = The username exists already. Please select
another one.
username.atLeast = There must be at least %s characters in your
username!
country.atLeast = Bitte im Feld Land einen Wert eingeben!
}
plugin.feadmin.fe_users.create.evalValues {
password = twice, atLeast[5]
username = uniqueLocal, atLeast[4]
email = email
country = atLeast[1]
}
Dokumentiert ist das ganze in "TSRef" unter "Evaluation of the form fields"
bei "fe_adminLib.inc".
Hoffe, das hilft, Albrecht
P.S. Standardmäßig steht in dem Template:
plugin.feadmin.fe_users {
userFunc = user_feAdmin->init
includeLibs = media/scripts/fe_adminLib.inc
templateFile ={$plugin.feadmin.fe_users.file.templateFile}
wrap1.wrap = {$plugin.feadmin.fe_users.wrap1}
wrap2.wrap = {$plugin.feadmin.fe_users.wrap2}
color1.wrap = {$plugin.feadmin.fe_users.color1}
color2.wrap = {$plugin.feadmin.fe_users.color2}
color3.wrap = {$plugin.feadmin.fe_users.color3}
table=fe_users
defaultCmd=create
debug=0
setfixed=0
delete=1
infomail = 1
infomail.default {
label = FORGOTPASSWORD
}
create = 1
create.preview = 1
create.fields =
username,password,name,email,usergroup,address,telephone,fax,title,company,z
ip,city,country,www
create.required = username,password,name,email
create.overrideValues {
usergroup = {$plugin.feadmin.fe_users.usergroupOverride}
}
create.evalValues {
password = twice, atLeast[5]
username = uniqueLocal, atLeast[4]
email = email
}
edit < .create
edit.overrideValues {
username =
}
edit.evalValues {
username = unsetEmpty
}
parseValues {
username = lower,nospace,trim
email < .username
password = trim
}
evalErrors {
password.twice = You must enter the password twice.
password.atLeast = There must be at least %s characters in your
password!
email.email = The email address is not validly formed. Must contain @
and a domain
username.uniqueLocal = The username exists already. Please select
another one.
username.atLeast = There must be at least %s characters in your
username!
}
pid = {$plugin.feadmin.fe_users.pid}
fe_userOwnSelf = 1
fe_userEditSelf = 1
cObjects.LOGIN = < tt_content.login.20
email.from = {$plugin.feadmin.fe_users.email}
email.fromName = {$plugin.feadmin.fe_users.emailName}
email.admin = {$plugin.feadmin.fe_users.email}
email.field = email
}
"Tanja Bantle" <T.Bantle at subnet7.de> wrote in message
news:mailman.1049779445.28042.typo3-stuttgart at lists.netfielders.de...
hallo.
Ich möchte, dass beim anlegen eines FE users ein zusätzliches feld
ausgefüllt werden MUSS.Im fe_admin_fe_users.tmpl hab ich die entsprechenden
marker (###SUB_REQUIRED_FIELD_country###)
gesetzt, aber es taucht keine fehlermeldung auf, wenn ich das feld leer
lasse.wo muss ich das festlegen?danke für die hilfe.*tanja
More information about the TYPO3-stuttgart
mailing list