Interchange Developer Resource


[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date ][Interchange by thread ]

Re: [ic] [if] tag



On Wed, 15 Aug 2001, Dan Browning wrote:

> At 09:44 PM 8/15/2001 -0400, you wrote:
> >Im trying to display some text only if its in a specific category
> >  [if  [item-field category] =~ /Specific Category/]
> >     Display this text here
> >[/if]
> >
> >but it wont do it,
> >
> >Anybody with somewhat interesting suggestions?
> >Cause mine are quiete dull  :)
[set item_type][loop-field type][/set]
[if explicit][condition]$Scratch->{item_type} ne 'deliverymethod'[/condition]

is one method i use.  of course, you really should define a variable in
your catalog.cfg for the name, just in case.

Variable DELIV_METHOD_LABEL	deliverymethod

[set item_type][loop-field type][/set]
[if explicit][condition]$Scratch->{item_type} ne __DELIV_METHOD_LABEL__[/condition]

is a little cleaner ;)

Now, how could I avoid setting a scratch variable, and just reference it
directly?

.cfg

_______________________________________________
interchange-users mailing list
interchange-users@interchange.redhat.com
http://interchange.redhat.com/mailman/listinfo/interchange-users


Search for: Match: Format: Sort by: