Show picture of customer in AgentTicketZoom

Hi. I have this url-thingy: http://images.company.com/login.jpg The "login" part actually corresponds to what OTRS calls "Login" in the customer information box. It's a repository of pictures of all our customers. Well, most of them. In my case, my login is "lajo" so that url would be http://images.company.com/lajo.jpg I would like to display a picture of the customer in that box. I can't for the life of me figure out where to even start. So far my best bet is LayoutTicket.pm, but as I don't know perl, I'm pretty much stumped. Is there an easy(ish) way to get those pictures up on the page? -- Lars

Look at a response for valid placeholder templates. Something like <img
src="http://images.company.com/<OTRS_CUSTOMER_DATA_UserLogin>.jpg"> might
work. Also, check out one of my older posts about overloading the http-link
in CustomerUser Map: http://forums.otterhub.org/viewtopic.php?f=60&t=7787
On Mon, Nov 26, 2012 at 9:44 AM, Lars Jørgensen
Hi.
I have this url-thingy: http://images.company.com/login.jpg
The "login" part actually corresponds to what OTRS calls "Login" in the customer information box. It's a repository of pictures of all our customers. Well, most of them. In my case, my login is "lajo" so that url would be http://images.company.com/lajo.jpg
I would like to display a picture of the customer in that box. I can't for the life of me figure out where to even start. So far my best bet is LayoutTicket.pm, but as I don't know perl, I'm pretty much stumped.
Is there an easy(ish) way to get those pictures up on the page?
-- Lars
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

Hi Gerald,
Thanks, I'll get right on it!
Lars
2012/11/26 Gerald Young
Look at a response for valid placeholder templates. Something like <img src="http://images.company.com/<OTRS_CUSTOMER_DATA_UserLogin>.jpg"> might work. Also, check out one of my older posts about overloading the http-link in CustomerUser Map: http://forums.otterhub.org/viewtopic.php?f=60&t=7787
On Mon, Nov 26, 2012 at 9:44 AM, Lars Jørgensen
wrote: Hi.
I have this url-thingy: http://images.company.com/login.jpg
The "login" part actually corresponds to what OTRS calls "Login" in the customer information box. It's a repository of pictures of all our customers. Well, most of them. In my case, my login is "lajo" so that url would be http://images.company.com/lajo.jpg
I would like to display a picture of the customer in that box. I can't for the life of me figure out where to even start. So far my best bet is LayoutTicket.pm, but as I don't know perl, I'm pretty much stumped.
Is there an easy(ish) way to get those pictures up on the page?
-- Lars
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
-- Lars

Hi Gerald,
That blog post really did the trick. I now have this in the CustomerUser
mapping in Config.pm (this is for LDAP, but I guess it'll work with any
backend using mapping):
Map => [
# note: Login, Email and CustomerID needed!
# var, frontend, storage, shown, required, storage-type
# [ 'UserTitle', 'Title', 'title', 1, 0, 'var' ],
[ 'UserFirstname', 'Firstname', 'givenname', 1, 1, 'var' ],
[ 'UserLastname', 'Lastname', 'sn', 1, 1, 'var' ],
[ 'UserLogin', 'Login', 'sAMAccountName', 1, 1, 'var' ],
[ 'UserLogin', 'Picture', 'sAMAccountName', 1, 1, 'var', '#">http://company.com/$Data{"UserLogin"}.jpg"></a>...
Look at a response for valid placeholder templates. Something like <img src="http://images.company.com/<OTRS_CUSTOMER_DATA_UserLogin>.jpg"> might work. Also, check out one of my older posts about overloading the http-link in CustomerUser Map: http://forums.otterhub.org/viewtopic.php?f=60&t=7787
On Mon, Nov 26, 2012 at 9:44 AM, Lars Jørgensen
wrote: Hi.
I have this url-thingy: http://images.company.com/login.jpg
The "login" part actually corresponds to what OTRS calls "Login" in the customer information box. It's a repository of pictures of all our customers. Well, most of them. In my case, my login is "lajo" so that url would be http://images.company.com/lajo.jpg
I would like to display a picture of the customer in that box. I can't for the life of me figure out where to even start. So far my best bet is LayoutTicket.pm, but as I don't know perl, I'm pretty much stumped.
Is there an easy(ish) way to get those pictures up on the page?
-- Lars
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
-- Lars

The only change I realized, *way* after the fact, is that (of course), you
may put the </a> before the wrote:
Hi Gerald,
That blog post really did the trick. I now have this in the CustomerUser mapping in Config.pm (this is for LDAP, but I guess it'll work with any backend using mapping):
Map => [ # note: Login, Email and CustomerID needed! # var, frontend, storage, shown, required, storage-type # [ 'UserTitle', 'Title', 'title', 1, 0, 'var' ], [ 'UserFirstname', 'Firstname', 'givenname', 1, 1, 'var' ], [ 'UserLastname', 'Lastname', 'sn', 1, 1, 'var' ], [ 'UserLogin', 'Login', 'sAMAccountName', 1, 1, 'var' ], [ 'UserLogin', 'Picture', 'sAMAccountName', 1, 1, 'var', '#">
http://company.com/$Data{"UserLogin"}.jpg"></a>...
Look at a response for valid placeholder templates. Something like <img src="http://images.company.com/<OTRS_CUSTOMER_DATA_UserLogin>.jpg"> might work. Also, check out one of my older posts about overloading the http-link in CustomerUser Map: http://forums.otterhub.org/viewtopic.php?f=60&t=7787
On Mon, Nov 26, 2012 at 9:44 AM, Lars Jørgensen
wrote: Hi.
I have this url-thingy: http://images.company.com/login.jpg
The "login" part actually corresponds to what OTRS calls "Login" in the customer information box. It's a repository of pictures of all our customers. Well, most of them. In my case, my login is "lajo" so that url would be http://images.company.com/lajo.jpg
I would like to display a picture of the customer in that box. I can't for the life of me figure out where to even start. So far my best bet is LayoutTicket.pm, but as I don't know perl, I'm pretty much stumped.
Is there an easy(ish) way to get those pictures up on the page?
-- Lars
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
-- Lars
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs