Support Forums

CATEGORIES on home page. How to?

This is a discussion on CATEGORIES on home page. How to? within the TemplateCodes forums, part of the Third Party Support category; This may be a silly question but I need to display categories (browse) on home page just below database content. ...


Go Back   68 Classifieds Forums > Third Party Support > TemplateCodes

Reply
 
Thread Tools Display Modes
Old 08-29-2011, 04:41 PM   #1
Customer
 
Join Date: Oct 2008
Posts: 31
Rep Power: 12
ebee is on a distinguished road
Default CATEGORIES on home page. How to?

This may be a silly question but I need to display categories (browse) on home page just below database content. Any easy way to achieve this? I am using Sigma Green template. I tried use of "include" function but may be I was not doing it right hence I had no success. Thanks!
ebee is offline   Reply With Quote
Old 08-29-2011, 06:22 PM   #2
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,311
Rep Power: 69
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

Why not copy the code from the default home.tpl page file into your current template home.tpl file?
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 08-29-2011, 07:39 PM   #3
Customer
 
Join Date: Oct 2008
Posts: 31
Rep Power: 12
ebee is on a distinguished road
Default

Quote:
Originally Posted by Mike-N-Tosh
Why not copy the code from the default home.tpl page file into your current template home.tpl file?
Could you kindly let us know paths for both files please? Thanks.
ebee is offline   Reply With Quote
Old 08-30-2011, 05:36 AM   #4
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

Open the home.tpl file within each of the Sigma template folders you are using as Mike says and copy the relevant code from the home.tpl file which sits in the default template. I am not sure how this can be described more simply. All individual template folders are contained within the templates folder. In other words put this into your sigma template home.tpl file:

PHP Code:
<table class="main" width="100%">
        <
tr>
            <
td>
            
            <
table width="100%">
            {
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" alt="{$data[td].name}" /></a>&nbsp;
                        {
$data[td].start_link}<strong>{$data[td].name}</strong></a>
                        {if 
$data[td].total <> ''}
                        ({
$data[td].total})
                        {/if}
                        <
br />
                        <!--{
$data[td].subcats}-->
                        {
$data[td].description}
                    {/if}
                    &
nbsp;
                    </
td>
                    {/
section}
                </
tr>
            {/
section}
            </
table>
            
            </
td>
        </
tr>
    </
table
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting

Last edited by seymourjames; 08-30-2011 at 05:39 AM.
seymourjames is offline   Reply With Quote
Old 08-30-2011, 07:25 AM   #5
Customer
 
Join Date: Oct 2008
Posts: 31
Rep Power: 12
ebee is on a distinguished road
Default

Quote:
Originally Posted by seymourjames
Open the home.tpl file within each of the Sigma template folders you are using as Mike says and copy the relevant code from the home.tpl file which sits in the default template. I am not sure how this can be described more simply. All individual template folders are contained within the templates folder. In other words put this into your sigma template home.tpl file:
Thanks a lot it works now as I expected. I kind of knew where to paste code but wasn't sure where to copy it from. Now I have also added WEB DEVELOPER add-on in Firefox so that helps a bit as well.
best regards
ebee is offline   Reply With Quote
Old 08-30-2011, 10:42 AM   #6
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

No problem. You should take a look at the online 68C documentation to understand how templates work.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Categories and subcats on home page sbhkma Templates, HTML, CSS, and Design Help 8 04-02-2010 01:53 PM
Categories on Home page twinlover Technical Support 2 08-12-2009 07:57 PM
sub categories on home page namibads Technical Support 0 04-02-2008 04:20 PM
Replacing the categories on home page with an image map.. margaretm Templates, HTML, CSS, and Design Help 1 08-07-2007 08:00 PM
Changing look of categories on home page Baz Templates, HTML, CSS, and Design Help 2 11-09-2006 01:29 PM


All times are GMT -4. The time now is 09:45 AM.


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