Support Forums

home.tpl sub-cats on different page

This is a discussion on home.tpl sub-cats on different page within the Templates, HTML, CSS, and Design Help forums, part of the General category; Hi all, I have created a second home.tpl (home2.tpl) page I have added the table which displays all the categories ...


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

Reply
 
Thread Tools Display Modes
Old 02-28-2010, 08:15 AM   #1
Customer
 
jason1971's Avatar
 
Join Date: Jan 2009
Location: England
Posts: 147
Rep Power: 13
jason1971 is on a distinguished road
Default home.tpl sub-cats on different page

Hi all,

I have created a second home.tpl (home2.tpl) page I have added the table which displays all the categories and sub-cats.

My question is: the home2.tpl page has information about a specific topic am I amble to only show the sub-categories relating to that topic within the table, if so how would I go about altering the following ?

{section name=tr loop=$data step=$cols}
<tr>
{section name=td start=$smarty.section.tr.index loop=$smarty.section.tr.index+$cols}
<td valign="top" >
{if $data[td]<>""}
{$data[td].start_link}<img src="{$data[td].image}" border="0" height="60" width="60" alt="{$data[td].name}" /></a> <td valign="top">
{$data[td].start_link}<strong>{$data[td].name}</strong></a>
{if $data[td].total <> ''}
({$data[td].total})
{/if}
<br /><hr>
{$data[td].subcats}
<!--{$data[td].description}-->
{/if}
 
</td>
{/section}



Many thanks for any help

Jason
__________________
v4.1.8 Hosted - using Templatecodes neo2- green template
jason1971 is offline   Reply With Quote
Old 03-01-2010, 02:07 AM   #2
Customer
 
jason1971's Avatar
 
Join Date: Jan 2009
Location: England
Posts: 147
Rep Power: 13
jason1971 is on a distinguished road
Default

As there are only a few sub-categories I am able to make a table to put them in (having slept on the idea)

My only question is now is there a way to add the total number of adverts displayed ?

The table will be something like:

<table class="tableborder">
<tr>
<td><a href="category.php?cat=builders-tools"style="text-decoration:none">Builders Tools</a></td>
<td><a href="category.php?cat=builders-tools"style="text-decoration:none">DIY Tools</a></td>

etc..

My problem is showing ({$data[td].total})

Any ideas much appreciated

Jason
__________________
v4.1.8 Hosted - using Templatecodes neo2- green template
jason1971 is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
home page changes ccs Templates, HTML, CSS, and Design Help 2 01-30-2010 08:43 AM
Home Page Unregistered Pre Sales Questions 3 07-08-2009 03:16 PM
placing a video on my about us page or the home page?? apotrader Technical Support 4 11-04-2008 10:11 PM
sub categories on home page namibads Technical Support 0 04-02-2008 04:20 PM
Different Template for home page RyanG Templates, HTML, CSS, and Design Help 11 01-18-2007 10:46 AM


All times are GMT -4. The time now is 10:44 PM.


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