+ Reply to Thread
Results 1 to 6 of 6

Thread: featured listings for category

  1. #1
    Guru
    Join Date
    Jan 2013
    Location
    Australia
    Posts
    2,028

    featured listings for category

    {include file='blocks'|cat:$smarty.const.RL_DS|cat:'feature d.tpl' listings=$featured_listings type='listings'}
    In the featured listing block there is this code, is there any way i could rewrite this code to where it has listing type to also just include a category and all sub categories please, lets say i had a category called books ? how could i write that code, then if i had had say a sub category called books > old books ? how would that path be set up ?

    Thanks for any help.

  2. #2
    Hello Pete,

    Do you want show in this block only listings from category and their subcategories. For example if my location is Audi I can see featured listings from audi and from all his subcategories isn't it?

    and what should show in this block if my location is home page?
    Viktor,
    Flynax technical department,
    Best wishes.

  3. #3
    Guru
    Join Date
    Jan 2013
    Location
    Australia
    Posts
    2,028
    Victor the home page one is fine, but what i want to to is add a featured block up top of each main category with just featured items from that category, and wondering if that code could be refined to show featured from just a set category.

  4. #4
    Hello Pete,

    go to ftp://includes>>classes>>rlListings.class.php

    find method: getFeatured and code:

    PHP Code:
    Only registered members can view the code
    and replace to:

    PHP Code:
    Only registered members can view the code
    then find code:

    PHP Code:
    Only registered members can view the code
    and add new after that:

    PHP Code:
    Only registered members can view the code
    then find code:

    PHP Code:
    Only registered members can view the code
    and after that add new:

    PHP Code:
    Only registered members can view the code
    save and check.
    Viktor,
    Flynax technical department,
    Best wishes.

  5. #5
    Guru
    Join Date
    Jan 2013
    Location
    Australia
    Posts
    2,028
    thanks victor will try that and let you know
    Pete

  6. #6
    Hello Viktor,

    I recently bought the latest version of general classified and I would like to have the same featured asked by Pete. On my home page, random featured ads from all the categories. On a specific categorie listing page, random featured ads related to this categorie only. Unfortunately, I was unable to find the second part of the code in my script. Any ideas? Thanks!

+ Reply to Thread