we are trying to modify the HTML output of the dynamic fields in the AgentTicketZoom.dtl. So what we want to achieve is that for a specific dynamic field name we want to add an id to the corresponding HTML tag. What I have learned so far is that it is not possible to add a condition to the dtl file (We are using OTRS > 3.2). So I think we have to modify the corresponding AgentTicketZoom.pm. I think I found the correct position:
Code: Select all
# output dynamic fields in the sidebar
for my $Field (@FieldsSidebar) {
$Self->{LayoutObject}->Block(
Name => 'TicketDynamicField',
Data => {
Label => $Field->{Label},
},
);
if ( $Field->{Link} ) {
$Self->{LayoutObject}->Block(
Name => 'TicketDynamicFieldLink',
Data => {
%Ticket,
# alias for ticket title, Title will be overwritten
TicketTitle => $Ticket{Title},
Value => $Field->{Value},
Title => $Field->{Title},
Link => $Field->{Link},
$Field->{Name} => $Field->{Title},
},
);
}
else {
$Self->{LayoutObject}->Block(
Name => 'TicketDynamicFieldPlain',
Data => {
Value => $Field->{Value},
Title => $Field->{Title},
},
);
}
}
Thanks,
cetama