Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • patvandenbosche Friend
    #945879

    I am just about finished with the site I’m developing (the dev site is http://www.virtualcountrymall.com), and I noticed on the search page, the results show a category name and an image. That’s fine, but when I checked the category, it had no image attached to it. I modified a category, adding my own image, and when I did the same search again, my new image did not appear. the images are coming from images/joomlart/demo subdirectory. Where is this set??? I just want to modify the photo that is being used.

    You can see the images on this page: Search Page – Category images

    Thanks in advance. Pat

    Pat Vanden Bosche
    www.patvb.com

    Ninja Lead Moderator
    #946525

    Hi,

    This is a bug from our product and it only loads the image from the article and not the category. But you can use this way to remove the image from category.

    Open templates/ja_magz_ii/html/com_search/search/default_results.php file

    find and change

    foreach ($this->results as $item) { 
        if ($item->slug) {
            $id = preg_replace("/[^0-9]/","",$item->slug);
            $idArr[] = $id;
        }
    }

    to

    foreach ($this->results as $item) {
        if (isset($item->catid)) {
            continue;
        }   
        if ($item->slug) {
            $id = preg_replace("/[^0-9]/","",$item->slug);
            $idArr[] = $id;
        }
    }

    Regards

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 1 reply, has 2 voices, and was last updated by  Ninja Lead 7 years, 10 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum