I *think* what you may be doing is trying to use the subroutine of the globals as a function, and that doesn't work, at least in the simple manner.
You would have to have one subroutine for each image field:
file_name1 => sub {...}
file_name2 => sub {...}
etc.
You would use a modified sub, referencing the appropriate field, then use <%file_name1%> where you want that to show up, <%file_nam2%> for that, etc.
I'm not sure you can pass arguments to template globals, but you could make this a function, and use the same sub routine for all fields, just passing in the one you want.
PUGDOG� Enterprises, Inc.
The best way to contact me is to NOT use Email.
Please leave a PM here.
You would have to have one subroutine for each image field:
file_name1 => sub {...}
file_name2 => sub {...}
etc.
You would use a modified sub, referencing the appropriate field, then use <%file_name1%> where you want that to show up, <%file_nam2%> for that, etc.
I'm not sure you can pass arguments to template globals, but you could make this a function, and use the same sub routine for all fields, just passing in the one you want.
PUGDOG� Enterprises, Inc.
The best way to contact me is to NOT use Email.
Please leave a PM here.