+ Reply to Thread
Results 1 to 8 of 8

Thread: Featured on listing details

  1. #1
    Senior Member
    Join Date
    Aug 2014
    Posts
    163

    Featured on listing details

    Hello, how are u ?


    I want to add sections in the listing details only for featured !

    I tried {if $listing_data.Featured} text{/if} but don't work

    Any idea ?

    Thank You

  2. #2
    Open the file: ftp://includes>>cotrollers>>listing_details.inc.php

    find the line:
    Code:
    Only registered members can view the code.
    and add a new line above or below:
    Code:
    Only registered members can view the code.
    and then in smarty use your condition
    Viktor,
    Flynax technical department,
    Best wishes.

  3. #3
    Senior Member
    Join Date
    Aug 2014
    Posts
    163
    Hello, Thank you Viktor

    It's work Fine

  4. #4
    Senior Member
    Join Date
    Aug 2014
    Posts
    163
    hello Viktor,


    To add the category on the listing page, what is the code? Thank you

  5. #5
    Need more explanation. I don't understand what a category do you want to add on listing page. And what a listing page do you mean? Will be better to show on a screenshot.
    Viktor,
    Flynax technical department,
    Best wishes.

  6. #6
    Senior Member
    Join Date
    Aug 2014
    Posts
    163
    <a title="{$lang.category}: {$listing.name}" class="cat_caption" href="{$rlBase}{if $config.mod_rewrite}{$pages[$listing_type.Page_key]}/{$listing.Path}{if $listing_type.Cat_postfix}.html{else}/{/if}{else}?page={$pages[$listing_type.Page_key]}&amp;category={$listing_data.Category_ID}{/if}">
    {$listing.name}
    </a>


    I want to add the name of the category in the hard in the page listing details

  7. #7
    Try to use my code: {$lang[$listing_data.Category_pName]}
    It will show listing category name.
    Viktor,
    Flynax technical department,
    Best wishes.

  8. #8
    Senior Member
    Join Date
    Aug 2014
    Posts
    163
    Thank You, it's work fine with :

    <a title="{$lang[$listing_data.Category_pName]}" class="cat_caption" href="{$rlBase}{if $config.mod_rewrite}{$pages[$listing_type.Page_key]}/{$listing_data.Path}{if $listing_type.Cat_postfix}.html{else}/{/if}{else}?page={$pages[$listing_type.Page_key]}&amp;category={$listing.Category_ID}{/if}">
    {$lang[$listing_data.Category_pName]}
    </a>

+ Reply to Thread