Taxonomy "AND" search filtering

Hello.

This is a core API question.

In Drupal 7 (and maybe also in 6), a url like this:

"http://somehost/search/node/anykeyword%20type:page%20term:5,1"

will return any node of type 'page' that contains the keyword 'anykeyword' and having taxonomy term 5 OR taxonomy term 1.

I tried to work around this narrowing the results to pages that only having term 5 and term 1 at the same time.
I made the following two changes:
1. In the 'node.module' file at line 1649, I altered 'setOption' function to setOption2, i.e., created new setOption function that will be associated to the taxonomy portion of the search.
2. In the file 'search.extender.inc' at line 169 after the orriginal setOption function I created setOption2, it is the same as setOption but instead of using db_or() i used db_and(). the new function body is shown below.

public function setOption2($option, $column) {
    if ($values = search_expression_extract($this->searchExpression, $option)) {
      $and = db_and();
      foreach (explode(',', $values) as $value) {
        $and->condition($column, $value);
      }
      $this->condition($and);
      $this->searchExpression = search_expression_insert($this->searchExpression, $option);
      return TRUE;
    }
    return FALSE;
 }

i expect everything to go well but it doesn't work!

Editing Templates without FTP

Hi,

I was just wondering if there was any way to edit the templates on the Drupal site itself and not have to upload them every time you want to update.

Thanks~
- Shavynel

Multi file upload for Drupal 7

Hi all, I'm searching for multiple file upload module for D7. I have tested Plupload, but it seems unfinished and unstable (not usable at all). The other modules I know don't have D7 port yet.

My goal is to make a Picture Gallery with an upload control for uploading several images at once. Is there any working solution for Drupal 7?

Thanks

smtp with phpmailer openssl problem

Hi
I wonder can anyone help me on this problem. I installed the SMTP Authentication support module and phpmailer module which I extracted and saved in the SMTP folder as instructed. I am now trying to configure it to send emails through my gmail account from my drupal site on my home PC xampp server. This has failed to work so far. In SMTP Authentication Support configuration I have the following settings:
1. SMTP Server: smtp.gmail.com
2. SMTP Port: 465 (as advised)
3. My username and password

page path in D7 views : Drupal 7 is frustrating to use.

I don't know if anyone is having as much frustration from using Drupal 7 as me so far.
Presently I am trying to create a new page view but can't find the place to set the path to this view.

Previously I have asked for permission for the following without any useful response :
1. Why can't I set default front page ? There is no place to set this in my install
2. Why can't I get cleanurl even though the test gives no error .I am hosted on 1and1 and I only used D7 becaus ethis works fine on my local machine.

Site stuck in ofline mode

I seem to be logged in, but when I try to navigate tot he page to bring the site on-line, it just showes the message for the site being off line.

I just upgraded from 6.2 to 7

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x