Hmmm
What I can suggest...
Easy way
- OTRS add ins -> Customer-ConfigItem link (Really awesome plugin, but yeah, a subscription is needed
![Wink ;)](./images/smilies/icon_wink.gif)
) Will allow to make direct links from a customer to a Config Item, without the need to add Company layer.
Hard way:
- Add hyperlinks in according .pm module, like AgentITSMConfigItemZoom.pm
If I understand correctly, you have deployed a Config Item text field, "CustomerID" where the Company is written in ( general cataolog dropdown? need more details in here) and you want to make this a hyperlink, so you don't have to manually search this CustomerID.
Then a solution you can make on your own fear and risk...
1) Backup everything you can
2)Edit AgentITSMConfigItemZoom.pm
3) Change
ITSMConfigItemOutputStringCreate function ~ line 410:
Code: Select all
# create output string
$Value = $Self->{LayoutObject}->ITSMConfigItemOutputStringCreate(
Value => $Value,
Item => $Item,
);
To this code:
Code: Select all
# Exception to show link of Company
if ($Item->{Key} eq 'CustomerID')
{
# create output string with hyperlink (need to make <a href= ... but that requires removal of quoting html tags in template)
$Value = $Self->{LayoutObject}->ITSMConfigItemOutputStringCreate(
Value => $Value.' [http://Insertyourdomainnamehere/otrs/index.pl?Action=AdminCustomerCompany;Subaction=Change;CustomerID='.$Value,
Item => $Item,
);
}
else
{
# create output string
$Value = $Self->{LayoutObject}->ITSMConfigItemOutputStringCreate(
Value => $Value,
Item => $Item,
);
}
If you need to hide the hyperlink, then make changes to according .dtl file and remove $Quote output to $Data type output to disable HTML escaping (hole in security
![Very Happy :D](./images/smilies/icon_biggrin.gif)
)
P.S. Friday evening, my english has gotten really bad, sorry
Smile,
A.