Get Customer Username/Login for article

Moderator: crythias

Post Reply
SuperDOS
Znuny newbie
Posts: 93
Joined: 17 Apr 2012, 16:16
Znuny Version: 6.0.3
Real Name: A!

Get Customer Username/Login for article

Post by SuperDOS »

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
SuperDOS
Znuny newbie
Posts: 93
Joined: 17 Apr 2012, 16:16
Znuny Version: 6.0.3
Real Name: A!

Re: Get Customer Username/Login for article

Post by SuperDOS »

any ideas? is it possible?
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Get Customer Username/Login for article

Post by crythias »

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 6.0.x (private/testing/public) on Linux with MySQL database.
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
SuperDOS
Znuny newbie
Posts: 93
Joined: 17 Apr 2012, 16:16
Znuny Version: 6.0.3
Real Name: A!

Re: Get Customer Username/Login for article

Post by SuperDOS »

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
SuperDOS
Znuny newbie
Posts: 93
Joined: 17 Apr 2012, 16:16
Znuny Version: 6.0.3
Real Name: A!

Re: Get Customer Username/Login for article

Post by SuperDOS »

@crythias Do you think it's possible?
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Get Customer Username/Login for article

Post by crythias »

Unfortunately, I don't have current knowledge or working of OTRS v6. I can't effectively answer the question.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
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