The only change I realized, *way* after the fact, is that (of course), you may put the </a> before the <img and therefore NOT hyperlink the image.


On Thu, Nov 29, 2012 at 4:25 AM, Lars Jørgensen <ljorg6@gmail.com> 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', '#"><img src="http://company.com/$Data{"UserLogin"}.jpg"></a><a href="#', 0 ],
       [ 'UserEmail', 'Email', 'mail', 1, 1, 'var' ],
       [ 'UserCustomerID', 'CustomerID', 'mail', 0, 1, 'var' ],
       [ 'UserPhone', 'Phone', 'telephonenumber', 1, 0, 'var' ],
       # [ 'UserAddress', 'Address', 'postaladdress', 1, 0, 'var' ],
       # [ 'UserComment', 'Comment', 'description', 1, 0, 'var' ],
     ],

Lars

2012/11/26 Gerald Young <crythias@gmail.com>
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 <ljorg6@gmail.com> 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