Re: [aev] Multi-level Category Functions
hi Dave
I would like to creat my category with CSS and Table like below:
> Product 1
--------------------------------------
>Product 1-1
>Product 1-2
--------------------------------------
> Product 2
but now my Category in each table and have blank line like here:
> Product1
-----------------------------------
<----blank line
> Product1-1
-----------------------------------
<----blank line
> Product1-2
-----------------------------------
> Product 2
Here is my code below:
<?php foreach ($categoryRecords as $categoryRecord): ?>
<?php echo str_repeat(" ", $categoryRecord['depth']); ?>
<?php if ($categoryRecord['_isSelected']): ?>
<span class="sidebar">
<?php endif; ?>
</span>
<table border="0" cellpadding="5" cellspacing="2">
<tr>
<td class="sidebar" onmouseover="this.style.backgroundColor='#D0D7E1';" onmouseout="this.style.backgroundColor='';" valign="top"><!-- /category menu --><a href="<?php echo $categoryRecord['_link'] ?>" class="sidebar"><?php echo $categoryRecord['name'] ?></a></td>
</tr>
<tr>
<td class="sidebar" onmouseover="this.style.backgroundColor='#D0D7E1';" onmouseout="this.style.backgroundColor='';" valign="top"><img src="images/blue-page/sidebar-line.gif" width="140" height="1" /></td>
</tr>
</table>
<?php if ($categoryRecord['_isSelected']): ?>
<?php endif; ?>
<?php endforeach; ?>
Do you know how to solve the problem?
How you can help me.
Thanks a lot!!
-JH
-Jax H.