[rt-users] an RT feature suggestion

Todd Chapman rt at chaka.net
Fri Feb 18 12:51:41 EST 2005


You could modify html/Elements/ShowCustomFields like so:

<table>
% my @entry_fields;
% while (my $CustomField = $CustomFields->Next()) {
% my $Values = $Object->CustomFieldValues($CustomField->Id);
  <tr>
    <td class="label"><%$CustomField->Name%>:</td>
    <td class="value">
<ul>
% while (my $Value = $Values->Next()) {
<li>
%   if ($CustomField->Type eq 'Image') {
<& ShowCustomFieldImage, Object => $Value &>
%   } else {
%     if ($Value->Content =~ /^http:/) {
<a href="<%$Value->Content%>"><%$Value->Content%></a>
%     } else {
<%$Value->Content%>
%     }
%   }
</li>
% }
% unless ($Values->Count()) {
<li><i><&|/l&>(no value)</&></i></li>
% }
</ul>
    </td>
  </tr>
% }
</table>

On Fri, Feb 18, 2005 at 10:50:44AM -0500, Stephen Turner wrote:
> At Friday 2/18/2005 10:13 AM, Michael 'Moose' Dinn wrote:
> 
> >Here's a quick and easy feature I'd love to see in RT - a custom field 
> >type of
> >"URL" that displays as a clickable link. I can see it being useful in all
> >sorts of areas.
> >
> >Anyone else think this might be useful?
> 
> This would be nice - you can kind of get this functionality by adding a 
> ticket link, but this doesn't tell you what the link is for or where it 
> goes (apart from displaying the URL). A URL CF would have a nice name and 
> could optionally have a "description" which could be the text that displays 
> for the link. I'd vote to put this on the wishlist.
> 
> Steve
> 
> 
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
> 
> RT Administrator and Developer training is coming to your town soon! 
> (Boston, San Francisco, Austin, Sydney) Contact training at bestpractical.com 
> for details.
> 
> Be sure to check out the RT Wiki at http://wiki.bestpractical.com



More information about the rt-users mailing list