Hallo,
ich habe ein eigens CustomerUser Backend an OTRS 2.2.2 angebunden.
--- snip ---
$Self->{CustomerUser1} = {
Name => 'Kunden DB 1',
Module => 'Kernel::System::CustomerUser::DB',
Params => {
DSN => 'DBI:mysql:database=customer;host=localhost',
User => 'otrs',
Password => '*****************',
Table => 'customer',
},
# customer uniq id
CustomerKey => 'id',
# customer #
CustomerID => 'customer_id',
CustomerValid => 'state_id',
CustomerUserListFields => ['customer_id', 'id', 'firstname',
'surname', 'email'],
CustomerUserSearchFields => ['id', 'firstname', 'surname', 'email'],
CustomerUserSearchPrefix => '',
CustomerUserSearchSuffix => '*',
CustomerUserSearchListLimit => 250,
CustomerUserPostMasterSearchFields => ['email'],
CustomerUserNameFields => ['title', 'firstname', 'surname',
'email'],
CustomerUserEmailUniqCheck => 0,
# # show now own tickets in customer panel, CompanyTickets
# CustomerUserExcludePrimaryCustomerID => 0,
# # generate auto logins
# AutoLoginCreation => 0,
# AutoLoginCreationPrefix => 'auto',
# admin can change customer preferences
AdminSetPreferences => 0,
# just a read only source
ReadOnly => 1,
Map => [
# note: Login, Email and CustomerID needed!
# var, frontend, storage, shown (1=always,2=lite), required,
storage-type, http-link, readonly
[ 'UserLogin', 'Username', 'id', 1, 1,
'var', '', 1 ],
[ 'UserPassword', 'Password', 'pass', 0, 1,
'var', '', 1 ],
[ 'UserSalutation', 'Salutation', 'title', 1, 0,
'var', '', 1 ],
[ 'UserFirstname', 'Firstname', 'firstname', 1, 1,
'var', '', 1 ],
[ 'UserLastname', 'Lastname', 'surname', 1, 1,
'var', '', 1 ],
# [ 'Company', 'Company', 'company', 1, 1,
'var', '', 1 ],
# [ 'UserEmail', 'Email', 'email', 1, 1,
'var', '', 1 ],
[ 'UserEmail', 'Email', 'email', 1, 1,
'var','$Env{"CGIHandle"}?Action=AgentTicketCompose&ResponseID=1&TicketID=$Data{"TicketID"}&ArticleID=$Data{"ArticleID"}',
0 ],
[ 'UserCustomerID', 'CustomerID', 'customer_id', 1, 1,
'var', '', 1 ],
# [ 'UserCustomerIDs', 'CustomerIDs', 'customer_ids', 1, 0,
'var', '', 0 ],
# [ 'UserComment', 'Comment', 'info', 1, 0,
'var', '', 1 ],
[ 'ValidID', 'Valid', 'state_id', 0, 1,
'int', '', 1 ],
],
# default selections
Selections => {
UserSalutation => {
'Mr.' => 'Herr',
'Mrs.' => 'Frau',
},
},
};
--- snap ---
Dazu habe ich jetzt einmal ein paar fragen:
1. Wo werden welche Informationen aus der Map angezeigt?
2. Welche Vaiablen kann ich alle Mappen? Nur die im Beispiel aufgeführt
sind?
3. Welche Salutations gibt es?
4. Was hat es mit der UserEmail 'http-link' Definition auf sich?
5. Welche Auswirkungen haben die 'shown' Optionen 0,1,2?
Viele Grüße
Bastian
_______________________________________________
OTRS-de Mailingliste: otrs-de - Webpage: http://otrs.org/
Archiv: http://lists.otrs.org/pipermail/otrs-de/
Listenabo verwalten: http://lists.otrs.org/cgi-bin/listinfo/otrs-de/
Support oder Consulting fuer Ihr OTRS System?
=> http://www.otrs.com/