PDA

View Full Version : Category and Subcategory Delimiter



Goran Karanovic
February 15, 2016, 11:10 AM
Is there anyway to add delimiter between Category and Subcategory in Listings Boxes? [Grid, Slideshow etc ..]

Now it only shows "Category Subcategory", i would like it to be for example "Category → Subcategory".

Viktor
February 15, 2016, 11:20 AM
Hello Goran,

Yes you can add delimiter, as I see you set category and sub-category in listing title and you can change code in file: ftp://includes>>classes>>rlListings.class.php
find method: getListingTitle

and code:


if ( !empty($listing[$fields[$key]['Key']]) )
{
$item = $GLOBALS['rlCommon'] -> adaptValue( $value, $listing[$value['Key']], 'listing', $listing['ID'], false, true );
$title .= $item ? $item .', ' : '';
}

your code may be a bit different. If you send your ftp access to my PM I will check and send you exactly code or add delimiter as you give me. Also I found 1 error with urls in box: 'Najnoviji Oglasi' I will fix it too.

Goran Karanovic
February 15, 2016, 11:45 AM
I did sent you FTP access Victor, please tell me when its done.