News:

Support for jDownloads 3 has been ended
Since 17 August 2023 Joomla.org has discontinued support for Joomla 3.x. Therefore, we will no longer offer official support for our Joomla 3 jDownloads version 3.9.x from January 2024.
Please update your website to the latest Joomla version (Joomla 4 or Joomla 5) as soon as possible. Afterwards, please update jDownloads to the latest published version. The longer you delay, the more difficult the upgrade process for your website is likely to be.

Main Menu
Support-Forum

Search only in titles?

Started by romagromov, 25.04.2016 19:03:20

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

romagromov

Hi!
When i searching downloads in admin panel, Jdownloads search in title and description.
How I can switch off searching in description?
Thanks.
Best free windows software for your PC at bestwinsoft.com
  •  

Arno

This is only possible with code changing.

Open administrator/components/com_jdownloads/models/downloads.php
and go to the line 338 - change it then as here listed:

// Filter by search in title
        $search = $this->getState('filter.search');
        if (!empty($search)) {
            if (stripos($search, 'id:') === 0) {
                $query->where('a.id = '.(int) substr($search, 3));
            } else {
                $search = $db->Quote('%'.$db->escape($search, true).'%');
                //$query->where('(a.file_title LIKE '.$search.' OR a.description LIKE '.$search.' OR a.description_long LIKE '.$search.' OR a.notes LIKE '.$search.')');
                $query->where('(a.file_title LIKE '.$search.')');
            }
        }


But note that your changes are lost after next update.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

romagromov

Thanks!  :)
I think it should be option in admin settings.
Best free windows software for your PC at bestwinsoft.com
  •  

Arno

Quote from: romagromov on 22.05.2016 12:18:30I think it should be option in admin settings.
Yes we could do it. But the problem is the translation team.
jDownloads exists in this moment in more then 50 languages.
So when we add an option must be also added text in the language files. So every team must translate the new text  again or the he is displayed only in english.

This is the reason why we do it not so fast for every small suggestion. It should be important for many  users.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •