Get Customer Username/Login for article

Moderator: crythias

Post Reply
User avatar
SuperDOS
OTRS expert
Posts: 93
Joined: 17 Apr 2012, 16:16
OTRS Version?: 6.0.3
Real Name: A!

Get Customer Username/Login for article

Post by SuperDOS » 07 Jan 2018, 19:24

Does anyone know if there is a way to get the customer username/login name like [% Data.UserLogin%]?
Tried [% Data.ArticleFields.Sender.Login %] but didn't get anything.

Customer ID would work as well.

Trying to make some customizations to my theme.

Thanks

User avatar
SuperDOS
OTRS expert
Posts: 93
Joined: 17 Apr 2012, 16:16
OTRS Version?: 6.0.3
Real Name: A!

Re: Get Customer Username/Login for article

Post by SuperDOS » 01 Feb 2018, 15:09

any ideas? is it possible?

User avatar
crythias
Moderator
Posts: 9980
Joined: 04 May 2010, 18:38
OTRS Version?: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Get Customer Username/Login for article

Post by crythias » 08 Feb 2018, 06:20

It might be possible, but it depends on the screen ...
But Customer Login is not article specific, it's Ticket specific. The customer doesn't/isn't supposed to vary through the ticket, even if the agent that submits a ticket does.

Which also goes to the "what entity added to the ticket?" question. Multiple agents? Makes sense. Multiple (customer, vendor) email senders? Also makes sense. That some outside customer or vendors added to the ticket but don't have a customer login? Makes sense.

Now, that vendor who you're corresponding with... What's his customerid?

What do you want to accomplish with your request?
OTRS 5.0.x (private/testing/public) on Linux with MySQL database. Also on github.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask

User avatar
SuperDOS
OTRS expert
Posts: 93
Joined: 17 Apr 2012, 16:16
OTRS Version?: 6.0.3
Real Name: A!

Re: Get Customer Username/Login for article

Post by SuperDOS » 09 Feb 2018, 14:40

Thanks for your reply.

What I'm trying to achieve is adding customer photos in the new "dialog view" of OTRS 6 by modifying the MIMEBase.tt template.
<div class="ArticleSenderImage">
<img src="http://URL TO WHERE IMAGES IS STORED/[% Data.ArticleFields.Sender.Login %].jpg" onerror='this.style.display = "none"'/>
</div>

About the same principle as my How To: viewtopic.php?f=60&t=28821

Image

User avatar
SuperDOS
OTRS expert
Posts: 93
Joined: 17 Apr 2012, 16:16
OTRS Version?: 6.0.3
Real Name: A!

Re: Get Customer Username/Login for article

Post by SuperDOS » 13 Feb 2018, 10:00

@crythias Do you think it's possible?

User avatar
crythias
Moderator
Posts: 9980
Joined: 04 May 2010, 18:38
OTRS Version?: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Get Customer Username/Login for article

Post by crythias » 15 Feb 2018, 21:50

Unfortunately, I don't have current knowledge or working of OTRS v6. I can't effectively answer the question.
OTRS 5.0.x (private/testing/public) on Linux with MySQL database. Also on github.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask

Post Reply