[ic] User Defined Tag?

Michelle Wilant interchange-users@interchange.redhat.com
Wed Dec 12 12:49:01 2001


In perl its called a subroutine.  And that's essentially what the 
usertags and global subs are.  

Steve Graham wrote:

>
> Hello,
>
> Using IC 4.8.3
>
> I need a macro or something, not sure what it is called, to replace 
> the following code with a one or two line call. I can probably use the 
> User Define Tag, but am not a Perl programmer (yet). Didn't know if I 
> had another choice.
>
> Many of my custom pages will use this same code with the exception of 
> the price.group match (eg. "CALWB"), which will be different on each 
> page. Hope this makes sense.
>
>
> <table border="1" width="100%">
> <tr>
> <td align=center>Example Image</td>
> <td align=center>Description</td>
> <td align=center> Single Unit Price </td>
> </tr>
>
> [query sql="select * from products,pricing where products.sku = 
> pricing.sku AND pricing.price_group='CALWB' ORDER BY products.description"
> type=list]
> [list]
> <tr>
> <td align=center>
> [page [sql-code]]<IMG SRC="thumb/[sql-param thumb]" border=0><br>sku#
> [sql-code]<br><font size=1>Click for more Info</font></a></td>
> <td align=center>[sql-param description]</td>
> <td align=center>[sql-price]</td>
> </tr>
> [/list]
> [/query]
> </table>
>
> Thanks,
> Steve
>
> _________________________________________________________________
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
> _______________________________________________
> interchange-users mailing list
> interchange-users@interchange.redhat.com
> http://interchange.redhat.com/mailman/listinfo/interchange-users
>
> .
>