PDA

View Full Version : Catagories on the home page!



pthurmond
09-13-2004, 07:51 AM
Does anyone know how to add all the categories to the home page with icons so that they stand out more than the categories list on the left???

Thanks,
Patrick

beahawk
08-01-2005, 05:33 AM
""""There is an HTML way and theres a PHP way. For you the html way might be easiest.

Edit mainpage using your admin "define mainpage" link and add the html for the categories and images you want. It looks like this site does not use the php way either as they dont display all their categories, only some of them.

Insert something similar to this in your main page for the same affect.

<tr align="center">
<td align="center" width="%" valign="bottom">
<a href="index.php?cat_id=7"><img src='images/motorcycle2.jpg' alt='Bear Accessories' border='0'></a><br></td>
<td align="center" width="%" valign="bottom">
<a href="index.php?cat_id=5"><img src='images/4032_small.jpg' alt='Bear Occasions' border='0'></a><br>
</td>
</tr>

Just switch out the image names and the category numbers and your all set.

""""""""
(quote from Clifton Murphy)

pthurmond
08-01-2005, 09:26 AM
Ok cool, I appreciate the HTML method and I may find good use for it but since I am learning PHP programming I would also like to know the PHP method. Could you please post that as well.

Thanks!

beahawk
08-01-2005, 09:47 AM
http://www.oscdox.com/index.php?name=PNphpBB2&file=viewtopic&t=728&highl ight=edit+mainpage+using+admin

http://www.oscdox.com/index.php?name=PNphpBB2&file=viewtopic&t=3708&high light=edit+mainpage+using+admin

http://www.oscommerce.com/community/contributions,2125/category,all/search,categories+main+page+contribution