Support Forums

looping categories

This is a discussion on looping categories within the Templates, HTML, CSS, and Design Help forums, part of the General category; Hi Guys, Culd you tell me how i can loop just a few categories into one of the tds on ...


Go Back   68 Classifieds Forums > General > Templates, HTML, CSS, and Design Help

Reply
 
Thread Tools Display Modes
Old 12-04-2008, 07:00 AM   #1
Graphic / Web Desginer
 
Join Date: Nov 2008
Location: London, England
Posts: 77
Rep Power: 8
DGiscombe is on a distinguished road
Default looping categories

Hi Guys,

Culd you tell me how i can loop just a few categories into one of the tds on the homepage?

I'm going to hard code 3 columns and display a few categories in each one to squash them up below each other, hope it works
DGiscombe is offline   Reply With Quote
Old 12-04-2008, 08:20 AM   #2
curmudgeon
 
Join Date: Mar 2006
Posts: 5,197
Rep Power: 127
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

The problem with looping through categories at the template level is that you have no control over whats displayed unless you evaluate the value of each category as you get to it in the loop. Thismeans in essence you need to check for each and every category you have.

If your going to type out all of that, then you may as well just hard code links in your main category table.

For example, mouse over a category link to see the URL and then use that URL in a new hard coded main page.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Are we able to charge certain categories and keep other categories free? Success Technical Support 5 04-02-2008 04:49 PM
Static Categories and Sub-categories list Tim_A Technical Support 0 06-08-2007 08:41 AM


All times are GMT -4. The time now is 12:24 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0