[ic] Horizontal Flyout menu - did it get posted?
Schuyler Langdon
interchange-users@icdevgroup.org
Mon Jan 13 20:57:00 2003
Dion Jones wrote:
> Has anyone found a way to create one where the top level items are by the
> side of each other?
> (kind of like the icdevgroup.org menus)
>
> thanks
> Dion Jones
>
I tried to do one like that with the table-organize tag but it came out afu
because the row with the category name has to span several columns, but I
managed to do one something like this:
<table width="100%" border="0" cellspacing="0" cellpadding="3">
[search-list][item-change 1][condition][item-param category][/condition]
<tr class="catable">
<td colspan="5"><b> [item-param category]</b></td>
</tr>
[/item-change 1]
[item-calc]if(!$yy){return "<tr class=\"catable\">";}[/item-calc]
<td valign="top" width="85"><table><tr>
<td height="105" bgcolor="#9AA3AF" align="center">[if-item-param
thumb]
[if type=file term="__DOCROOT__/images/[item-param thumb]"] <a href="[area
[item-param sku]]"><img src="/images/[item-param thumb]"
border="0"></a>[/if][/if-item-param]
</td>
</tr><tr><td>
<a class="skulink" href="[area [item-param sku]]">[item-param
description]</a></td></tr></table></td>
[item-calc] $xx++; $yy=$xx % 5; if(!$yy){return "</tr>";}[/item-calc]
[/search-list]
[calc] for($xx=0;$xx<$yy;$xx++){$pad.="<td> </td>";}if($yy){return
$pad."</tr>";}[/calc]
</table>
Your image paths will most likely be different and you won't have a class
named catable and I cut out all the buy now and such. And I think for this
to work you need rf=* in your category search and quick search, something
like this:
fi=products
st=db co=1
sf=category
se=Apples
op=eq
se=1
sf=inactive
op=ne
nu=0
ml=10
tf=title
rf=*
Schuyler Langdon
GatorDev.com