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

help creating custom search

I've created a modified image module that adds a new table with custom image data fields that I need to be able to search. I'm a little stumped on what hooks to add into my module to allow for this searching. Can someone point me in the right direction for some help? thanks in advance. This is my first post and I've only been working with drupal for about a week.

Charlie

Using CCK to interface with other CMS databases

hi

I'm looking at using the CCK to interface with the db of another CMS (ActionApps).

I've studied the source and now am wondering what is the best way of doing this.

Basically, the other CMS uses numerous different field types (e.g. text field, date field). At the moment I'm considering 'subclassing' the equivalent field types in CCK and retrieving/storing values into the ActionApps DB instead of the Drupal DB.

I'm seriously new to Drupal development, hence I'm asking for comments on whether this is a good idea - or it's completely stupid.

Thanks,

linkable block or menu as image on the right panel

I need a very simple think. I have number of images and each image will be link with a corresponding page. I need to save these image as a block or menu and link other pages to this image.

Theme_button function bug

I found a bug in the theme_button function in form.inc at line 964

i change where puts $element['#button_type'] for $element['#type'], if you don't make that the class is empty like class="form- "

If it isn't a bug sorry for the problems.

What is the benefit enabling taxonomy wrapper module with forums?

Category is a superb module as those creating containers and categories already know. I got a new site where I use category for, well, categorizing ecommerce products. Benefits here are obvious. There is also a forum where the structure is already in place. I realize I can replace original taxonomy & book functionalities by enabling corresponding wrappers, but it is still unclear to me, what are the benefits I get if the forum works through the taxonomy wrapper? Couldn't find the answer at http://category.greenash.net.au.

Help desperately needed with menus

OK ... I've burned half a day trying to get this to work. It must be something easy that I'm missing. But I give up.

I'm writing a module which talks to another database ("facilities"). I need to view, comment, and edit entries from this other database ... each of these will be a LOCAL_TASK ... View will be the default.

I can get the menu to appear and hook into the right callbacks with the following code:

		$items[] = array('path' => 'facility',
		'title' => t('Facility Profile'),
		'callback' => 'facility_page',
		'access' => user_access('access content'),
		'type' => MENU_SUGGESTED_ITEM);
		
		$items[] = array('path' => 'facility/',
		'title' => t('View'),
		'callback' => 'facility_page',
		'access' => user_access('access content'),
		'type' => MENU_DEFAULT_LOCAL_TASK,
		'weight' => -10); 
		
		$items[] = array('path' => 'facility/'. arg(1) .'/edit',
		'title' => t('Edit'),
		'callback' => 'facility_edit',
		'access' => user_access('access content'),
		'type' => MENU_LOCAL_TASK);
		
		$items[] = array('path' => 'facility/'. arg(1) .'/feedback',
		'title' => t('Feedback'),
		'callback' => 'facility_feedback',
		'access' => user_access('access content'),
		'type' => MENU_LOCAL_TASK);

The problem is that arg(1) keeps getting filled in with the string "modules" in the menu links for the "feedback" and "edit" menu tabs. And the node ID number never appears in the menu tab link for the default "View" tab.

Pages

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