Support Forums

Categories display 2 cols

This is a discussion on Categories display 2 cols within the Modules / Plugins / Modifications forums, part of the Developer Forums category; I'm trying to display the categories in 2 cols without space between categories. Original: HTML Code: Arts (6) Diecast (3) ...


Go Back   68 Classifieds Forums > Developer Forums > Modules / Plugins / Modifications

Reply
 
Thread Tools Display Modes
Old 08-19-2008, 11:32 PM   #1
Senior Member
 
hel68c's Avatar
 
Join Date: Jun 2008
Location: Canada, Quebec
Posts: 284
Rep Power: 15
hel68c is just really nice hel68c is just really nice
Default Categories display 2 cols

I'm trying to display the categories in 2 cols without space between categories.

Original:

HTML Code:
   Arts  (6)                                  Diecast (3)
> Painting (1)                                > Plastics (0) 
   - Accessories (1) 
> ScrapBooking (1) 
   - Accessories (1) 
  Dolls (2)                                   Electronics (0)
> Antiques (0)  
> Accessories (1)
> Clothings (1) 
> Collectibles (0) 
> Houses & Vehicules (0) 
   - Accessories (0) 
> Magazines (0) 
> Plastics (0) 
> Porcelains (0) 
> Woodens (0) 
  Firurine (1)                              Miscellaneous (0)
> Plastics (1)                              > Collectibles (0) 
   - 1/8" (1)                                - Cards (0) 
                                             - Stamps (0)
Modified:

HTML Code:
   Arts  (6)                            Electronics (0)      
> Painting (1)                                 
   - Accessories (1)                    Firurine (1) 
> ScrapBooking (1)                     > Plastics (1) 
   - Accessories (1)                     - 1/8" (1) 
Diecast (3)                             Miscellaneous (0)
> Plastics (0)                           > Collectibles (0)
  Dolls (2)                                - Cards (0) 
> Antiques (0)                             - Stamps (0)
> Accessories (1)
> Clothings (1)                               
> Collectibles (0)                            
> Houses & Vehicules (0) 
   - Accessories (0) 
> Magazines (0) 
> Plastics (0) 
> Porcelains (0) 
> Woodens (0) 
I'm work with the file browse.tpl but I don't know what is the tag for smarty to display without space.

browse,tpl
PHP Code:
    <table class="main" width="100%">
        <
tr>
            <!-- <
th>{$smarty.const.LANG_BROWSE_CATEGORY}</th> -->
        </
tr>
        <
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" >
                    <
div id="entete_categorie">
                    {if 
$data[td]<>""}
                        {
$data[td].start_link}</a>&nbsp;<!-- <img src="{$data[td].image}" border="0" alt="{$data[td].name}" /> -->
                        {
$data[td].start_link}<strong>{$data[td].name}</strong></a>
                        {if 
$data[td].total <> ''}
                        ({
$data[td].total})
                        {/if}
                        </
div>
                        {
$data[td].subcats}
                        <!-- {
$data[td].description} -->
                    {/if}
                    &
nbsp;
                    </
td>
                    <
td>  
                    {/
section}
                    
            </
tr>
            {/
section}
            </
table>
            
            </
td>
        </
tr>
    </
table
__________________
Serge
HobbyClassified.com
V4.08 Developper, Module installed (CIV Scam Filter, Maffo Location System, Maffo News,Youtube, Seller Store)
hel68c is offline   Reply With Quote
Old 08-20-2008, 09:29 PM   #2
Senior Member
 
hel68c's Avatar
 
Join Date: Jun 2008
Location: Canada, Quebec
Posts: 284
Rep Power: 15
hel68c is just really nice hel68c is just really nice
Default

No idea how to?
__________________
Serge
HobbyClassified.com
V4.08 Developper, Module installed (CIV Scam Filter, Maffo Location System, Maffo News,Youtube, Seller Store)
hel68c is offline   Reply With Quote
Old 08-20-2008, 09:44 PM   #3
68 Evangelist & Developer
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,747
Rep Power: 51
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

I don't think that this has anything to do with smarty. This seems more like standard HTML. The issue is that the code being used generates td (data cells), therefore if you have two horizontal data cells in one table row they will be the same height. If one data cell has many lines of data, the adjacent horizontal data cell will then have blank space under it, because it is in a data cell that is already a larger height.

I believe that you would either need to change the code so that it output <UL><LI> (unordered list items) OR you would need to have it output individual tables per category.

That's the approach that I would use.

Good luck and I hope that this helps you in your quest!

-Mike
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified)
Sandbox (v3.1.10, v4.0.9, 4.1.5)
Visit My blog for tips, tricks, tutorials, reviews for 68 Classifieds as well as 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
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to display categories in the left column spark Modules / Plugins / Modifications 9 08-04-2008 03:41 AM
I HATE UPDATES!! AUGH! How do I display NEW ads FIRST in categories? cathouse911 Technical Support 11 06-11-2008 06:43 AM
Are you a developer? I need a quote for some modifications! cwp Modules / Plugins / Modifications 2 04-03-2008 01:29 PM
removing the price field on some categories manilaboy v3.1 Questions & Support 2 11-26-2006 07:09 PM


All times are GMT -4. The time now is 05:42 AM.


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