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
Printable View
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
Open the file: ftp://includes>>cotrollers>>listing_details.inc.php
find the line:and add a new line above or below:Code:Only registered members can view the code.
and then in smarty use your condition :)Code:Only registered members can view the code.
Hello, Thank you Viktor
It's work Fine ;)
hello Viktor,
To add the category on the listing page, what is the code? Thank you
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.
<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]}&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
Try to use my code: {$lang[$listing_data.Category_pName]}
It will show listing category name.
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]}&category={$listing.Category_ID}{/if}">
{$lang[$listing_data.Category_pName]}
</a>