This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Search module

Hello

I wrote my own module which implements hook_search. I want to know if there is any way to change the default search function which is called when i do some search on page. By default it makes a search on "content". I need to do search default by using my hook_search function.

Thanks

How the crap does Taxonomy lineage work?

I've installed the taxonomy lineage module and I'm wondering exactly how to use it. Am I supposed to use this with the views module? Where can I find some solutions on how to use this? Help?

Jay

HTTPGet trouble

Is the native drupal function HTTPGet from drupal.js supposed to work in internet explorer "out of the box". If so why did I find it nescessary to hack it with these lines:

var xmlhttp;
  if (window.XMLHttpRequest)
  {
  xmlhttp=new XMLHttpRequest()
  }
// code for IE
else if (window.ActiveXObject)
  {
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
  }

To get it to work?
I got loads of errors in ie before I added the ie specific part using the activex control as it is described here: http://www.w3schools.com/dom/dom_http.asp

But I realise that the auto search fields (like the author field in the node form) do work in internet explorer as well, so
it all cooks down to what am I doing wrong when I find myself hacking HTTPGet to get it to work?

My code calling HTTPGet:

 var formObj = frames['img_assist_main'].document.forms[0];
  var nid = formObj['edit[nid]'];
  var title = formObj['edit[title]'];
  var desc = formObj['edit[desc]'];
  
  // Insert the image
  
  var string = HTTPGet_debug('http://' + window.location.host + '/petvett.no/attach_image/attach/' + nid.value + '/' + title.value + '/' + desc.value);
  var image = myDoc.getElementById('attach_image_content');
  image.innerHTML = string;

Original unhacked HTTPGet:
<?php
/**
* Creates an HTTP GET request and sends the response to the callback function.
*
* Note that dynamic arguments in the URI should be escaped with encodeURIComponent().

PEGspace

This is just an announcement about a set of Drupal modules being developed to serve functions specific to Access Television (public, educational and government: known as PEG) and some of the modules they will turn out will likely be of use to the greater Drupal community.

The project is called PEGspace:
http://www.pegspace.org

Display and explorer file in directories

I need to know if exist a module that allows navigate, find, display in a screen,drop and move file in a directory.
Of it doesn´t exist, I be glad if somebody help me with some infomation to create a module reference of this.

How can I create a directory style view for a given node? Or is that already available?

I want to have a flexinode type call directory listing or something with fields for website, description, etc.

I'd like to have a view of categories ala directory style where you click on a link and it takes you to the subsections and you drill down until you find something you like. I'm thinking there's already something like that with one of the taxonomy modules I've installed before but I can't remember.

Can you help me out?

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions