
José Miguel Parrella Romero schrieb:
Robin Schroeder escribió:
I think about a parameter like "ReadOnly => 1". Where do I have to browse/edit the source code? Or has anyone already made a modification like this?
You can store any key=>val combination in that hash, so you can use e.g. ReadOnly => 1:
Input => { Type => 'Text', Size => 50, MaxLength => 50, ReadOnly => 1, },
Rendering happens in Kernel/Output/HTML/ITSMConfigItemLayoutText.pm, near line 182, where something like this would help:
if ( $Param{Item}->{Input}->{ReadOnly} and $Value ne '' ) { $String .= 'readonly="readonly" '; }
HTH, Jose
Worked like a charm! Thank you very much! Best regards Robin Schroeder -- | Robin Schröder Ruhr-Universität Bochum | | IT-Systeme, Software-Integration Dezernat 6, Abt. 3 | | Tel.: 0234-32-23900 Gebäude NA 03/75 | | Mail: robin.schroeder@uv.rub.de 44780 Bochum |