May 21, 2013, 08:08:12 AM

Login with username, password and session length

FORUM POSTING GUIDELINES - Please read and follow them.

Pages: [1]
  Print  
Author Topic: Advanced search: just "between" option.  (Read 362 times)
Julio Sene França
Full Member
***
Offline Offline

Posts: 71


WWW
« on: March 18, 2012, 01:37:32 PM »

Can I configure the advanced search to show only the "between" option for decimal fields?

I understand that options like ">" "<" and "=" are nice, but for more than 95% of cases the user can create the search using just the "between" option when the field is a decimal value.

Can I leave just the "between" option?
Logged
Alejandro
Global Moderator
Administrator
Hero Member
*
Offline Offline

Posts: 28360


« Reply #1 on: March 18, 2012, 04:53:15 PM »

It's not configurable. You have to hack the /jreviews/views/custom_fields.php, search for "between" until you find the relevant array and comment or remove the other two options.
Logged

http://www.reviewsforjoomla.com/testimonials Leave a testimonial for JReviews
doug hoseck
Newbie
*
Offline Offline

Posts: 13


« Reply #2 on: April 24, 2012, 09:33:06 AM »

"/jreviews/views/custom_fields.php"

Are you sure about this path 'cos I cannot find custom_fields.php there...?
Logged
Alejandro
Global Moderator
Administrator
Hero Member
*
Offline Offline

Posts: 28360


« Reply #3 on: April 24, 2012, 10:14:32 AM »

sorry, it's "/jreviews/views/helpers/custom_fields.php"
Logged

http://www.reviewsforjoomla.com/testimonials Leave a testimonial for JReviews
doug hoseck
Newbie
*
Offline Offline

Posts: 13


« Reply #4 on: April 24, 2012, 10:51:56 AM »

Thanks for the quick response, I found the file & solved my problem.
Logged
Carsten Irmer
Newbie
*
Offline Offline

Posts: 2


« Reply #5 on: March 15, 2013, 03:38:29 PM »

Hello, how can I change the text of "<=" or ">=" wihtin the advanced search module? Thanks, Matthias
Logged
Alejandro
Global Moderator
Administrator
Hero Member
*
Offline Offline

Posts: 28360


« Reply #6 on: March 15, 2013, 03:54:53 PM »

The code is in /jreviews/views/helpers/custom_fields.php

Code:
                    # Add search operator fields for date, decimal and integer fields
                    if($search && in_array($value['type'],$this->operatorTypes))
                    {
                        $options = array(
                            'equal'=>'=',
                            'higher'=>'&gt;=',
                            'lower'=>'&lt;='
                            ,'between'=>__t("between",true)
                        );

Logged

http://www.reviewsforjoomla.com/testimonials Leave a testimonial for JReviews
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!