1
kalamata
Web Links Presentation
  • 2005/10/5 12:37

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Dear All,

I am trying to present web links ctaegories and sub-categories in a different way than the original. I would like to have a row with two columns for each web link category - the one on the left will have the name of the category and the column on the right will have the name of the sub-categories. For example, if you have two categories and the second one has two sub-categories, then I would like my display 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}>





<{foreach item=category from=$categories}>



<{if count($infercategories) gt 0}>
<{foreach item=subcat from=$infercategories}>


<{/foreach}>
<{/if}>



<{/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

244 user(s) are online (173 user(s) are browsing Support Forums)


Members: 0


Guests: 244


more...

Donat-O-Meter



<{if $category.image != ""}>

<{/if}>

<{$category.title}> (<{$category.totallink}>)

<{$subcat.title}> (<{$subcat.totallink}>)
Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits