[ic] Adding additional info to a category's results.html output

Mike Clark interchange-users@interchange.redhat.com
Tue Mar 5 08:59:00 2002


----- Original Message -----
From: "Roger Yarrow" <rogeryarrow@hotmail.com>
To: <interchange-users@interchange.redhat.com>
Sent: Tuesday, March 05, 2002 3:38 AM
Subject: [ic] Adding additional info to a category's results.html output


> Currently, whenever a user selects a category, results.html returns a list
> of all items in that category.  However, for one particular category, I
want
> to add additional text/HTML after that listing which contains extra info
> particular to all items in that category.
>
> How do I do this?  I'm thinking some sort of code like this in
results.html:
>
> [if selected_category equals my_category]
> print extra info/HTML here!
> [/if]
>
> But I don't know what tags to use or which variables to compare against.
> (However, this means all that extra info will be loaded each time
> results.html is called, regardless if it is displayed, right?)
>
> Little help here?
>
> Thanks!
>
>

Here is a functioning code snippet from one of my sites. You should be able
to replace prod_group with category and Canvas with the name of the category
you want to match.

Hope this helps.

Mike Clark

<pre>

[if-item-field prod_group =~ /Canvas/]
     <li><font face=arial size=-2>Designer: [item-field designer]</font>
     <li><font face=arial size=-2>Size: [item-field designsize]</font>
     <li><font face=arial size=-2>Mesh Count: [item-field meshsize]</font>
[else]
   <font face="arial" size=-1>[item-field comment]<br></font>
[/else]
[/if-item-field]


</pre>