[rt-users] Link values to - use multiple CF values
Stuart Browne
stuart.browne at ausregistry.com.au
Thu Sep 1 19:47:35 EDT 2011
Damn, missed the path properly:
--- /opt/rt3/local/html/Callbacks/MingleCardNumberLink/Elements/ShowCustomFields/ShowComponentName
<%INIT>
if ($CustomField->Name eq 'Mingle Card Number') {
$$Name = 'DisplayMingleCardLink';
}
</%INIT>
<%ARGS>
$Name => undef
$CustomField => undef
$Object => undef
</%ARGS>
--- /opt/rt3/local/html/Elements/DisplayMingleCardLink
% my $output = $Object->Content;
%
% my $MingleCard = $Object->Content;
% if (defined $MingleCard && $MingleCard) {
% my $MingleProject = $Object->Object->FirstCustomFieldValue('Mingle Project');
% if ($MingleProject eq '') {
% $MingleProject = 'dnr';
% }
% $output = sprintf("<a target='_new' href='http://URL/projects/%s/cards/%s'>%s</a>", $MingleProject, $MingleCard, $MingleCard);
% }
<%$output|n%>
<%ARGS>
$Object => undef
</%ARGS>
---
More information about the rt-users
mailing list