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

Need a Parametric Search Module

Hello All,

First of all, I am very new to Drupal, but I really like what I have seen so far. So, what I want may already exist and I just haven't found out about it yet. I want to be able to search the content on my site based on a set of parameters, like for example, looking for all posts with a certain number greater than/less than number N. The "certain number" would have to be previously defined in some way to pick it out from the other content, and there could be multiple parameters to be matched.

I'm guessing that there are two ways to go about this. One is that I would have to make my own custom "add content" system with some way to specify which content is which parameter, and then store the data in custom tables in the database. Then the search feature would be able to find the data because it knows which tables hold which content. This seems like a lot of work, and that it would require more maintenance as drupal grows and changes.

The other method would be to use XML tags in the content around the specific data, so then I could parse it and pull out the data from each posting during the search, then list the matching posts. This seems like a lot less work because I don't have to make my own "add content" system, as the one in drupal works for that now. I also wouldn't have to tinker with the database. The downsides are that as the amount of content grows, it might not scale as well as the database storage method above. Also, I don't know if Drupal will change the content entering system at some point and break the ability to embed XML tags, but I would think not.

Can hook_menu menu tabs be used on the modules settings page?

I am probably not usnderstanding this correctly but I thought that menu tabs and hook_menu were available by the path given. But when I used

admin/settings/mymodule

How I make groups as required filed with OG module

How I make groups as required filed in registration module?

I also obtain a warning with og module:
I'm using civicspace 0.8.3rc5, and I installed og 4.6.0, when I post a content, if in 'Audience' field I check Show this post in these groups, I obtain this warning in content display:
warning: Invalid argument supplied for foreach() in /home/eicapo/rete/civicspace/includes/common.inc on line 1470.

processing forms

Hi,

I created a module with simple page with a link to it in the left navigation menu.

Now i need to create another module that admins the data shown to the users in the other module.

frontpage of the module should have links to 3 subpages of the module. Each subpage should have a form filled with data queried from the database that is then submitted to some processing component that updates the data and shows a result page for the update and then a link back to the subpage. pretty simple (C)RU(D) functionality.

How to create global variables from module

Hi,
I have a very stupid question, but I can't find anywhere the answer :)
I want to create a new object in my module like $user wich can be called from any module just when putting global $myobject; This variable must be declared once when user logs.
I am waiting for your help
Thanks
Amine

How to load a table into a selection box?

I am missing something here, but I am not sure what it is. The question is, how do I load a table into a selection box in a form. Here is what I have:

$form['tournament_add']['tourney_league'] = array(
'#type' => 'select',
'#title' => t('League Name'),
'#default_value' => variable_get('poker_leagues', array()),
'#options' => $select,
'#extra' => '',
'multiple' => 1 );

Pages

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