Hi I am attempting to make a modal view for a customfield links
I edited the code located in /opt/rt5/share/html/Elements/ShowCustomFields
After editing the code still no changes show for the customfield links. Could someone help me out where i am going wrong. No changes are being reflected. Restarted the service cleanered the mason cache and got the same issue. Any help is greatly appreciated.
my $print_value = sub {
my ($cf, $value) = @_;
my $linked = $value->LinkValueTo;
if ( defined $linked && length $linked ) {
# my $linked = $m->interp->apply_escapes( $linked, ‘h’ );
# $m->out(’’);
my $linked = $m->interp->apply_escapes( $linked, 'h' );
$m->out('<a href="#myModal" data-target="#myModal" data-toggle="modal">');
$m->out('<div class="modal fade" id="myModal" role="dialog"><div class="modal-dialog modal-lg"><div class="modal-content"><div class="modal-header">');
$m->out('<button type="button" class="close" data-dismiss="modal">×</button>');
$m->out('</div><div class="modal-body">');
$m->out('<div class="embed-responsive embed-responsive-16by9 z-depth-1-half">');
$m->out('<iframe src="'. $linked .'" name="myFrame"></iframe></div></div>');
$m->out('<div class="modal-footer"><button type="button" class="btn btn-default" data-dismiss="modal">Close</button></div></div></div></div>');
}