1
kalamata
Web Links Presentation
  • 2005/10/6 21:40

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


to be like the following:

Category 1 (4)
Category 2 (5) Sub-Category 1 (12)
Sub-Category 2 (12)

I wrote the following code for that:

<{if count($categories) gt 0}>
<hr />
<table border='0' cellspacing='5' cellpadding='0' align="center">
<tr>
<!-- Start category loop -->
<{foreach item=category from=$categories}>

<td valign="top">

<{if $category.image != ""}>
<a href="<{$xoops_url}>/modules/mylinks/viewcat.php?cid=<{$category.id}>"><img src="<{$category.image}>" height="50" border="0" alt="" /></a>
<{/if}>

</td>
<td valign="top" width="40%"><a href="<{$xoops_url}>/modules/mylinks/viewcat.php?cid=<{$category.id}>"><b><{$category.title}></b></a>&nbsp;(<{$category.totallink}>)<br /></td>
<{if count($infercategories) gt 0}>
<{foreach item=subcat from=$infercategories}>

<td>
<a href="<{$xoops_url}>/modules/mylinks/viewcat.php?cid=<{$subcat.id}>"><b><{$subcat.title}></b></a>&nbsp;(<{$subcat.totallink}>)
</td>
<{/foreach}>
<{/if}>
</tr>
<tr>

<{/foreach}>

However, I have problems in getting the sub-categories to work - if I am not wrong infercategories is used by XOOPS to denote sub-categories, or am I wrong?

I look forward to hearing from you soon.

Thanks,
George

Login

Who's Online

118 user(s) are online (63 user(s) are browsing Support Forums)


Members: 0


Guests: 118


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jun 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits