V4.2.x Split New Listings in 2 Columns

Discussion in 'Modules / Plugins / Modifications' started by performancecentral, Aug 8, 2011.

  1. Hey all,

    My web site is http://www.jdmtrader.com.au

    I'm hoping to split my New Listings Column into 2 on this page:
    Performance Central - Free Performance Parts Classified

    So I would have say:



    Listing 1 Listing 2
    Price: $200 Price: $200
    Description: In great Condition Description: In great Condition


    Listing 3 Listing 4
    Price: $200 Price: $200
    Description: In great Condition Description: In great Condition



    I was originally thinking of using a count function, which would be along the lines of this:

    COUNT = 0

    IF COUNT = 0
    {
    DISPLAY LISTING 1
    ADD 1 to COUNT
    }



    IF COUNT IS 1
    {
    <TD>
    DISPLAY LISTING 2
    Count = 0
    </TD>
    }


    IF COUNT = 0
    {
    DISPLAY LISTING 3
    Count = 1
    }


    Etc

    I am just not sure how to write up the first initial count within the TPL code.

    thanks again for any help

    Kind Regards
    Adrian
  2. Still hoping to figure out a way. Any advice would be fantastic. thanks heaps everyone
  3. seymourjames All Hands On Deck

    Your site appears to be down or you are blocking countries outside of Australia via .htaccess.
  4. Mike-N-Tosh Developer & Moderator

    Good looking site!

    I would suggest that you look at the default "home.tpl" and use the smarty code that is used for the splitting the categories into columns. Change the variables appropriately, etc.. To read more about those types of smarty functions, go to the source, the smarty.net website.

    I also noticed that you are using the default template, but highly modified. I DO NOT RECOMMEND THIS! You should rename your custom template. KEEP A STANDARD DEFAULT TEMPLATE folder on your site. You are asking for trouble down the road if you don't if you should have trouble in the future.
  5. Hey there,
    Wow thanks for the compliment, I had a blast working on it the last few months.

    I find that an awesome compliment to say its Highly modified I will definitely rename it and copy over the Default Template (I kept a copy on my desktop). I will have a hunt around for the smarty code too, thanks very much for that

    Its amazing software, I'm a happy customer. I appreciate everyones help on here too.

Share This Page