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

Load a list of custom node titles when creating children

I have created a custom node a few days ago. Now I want to create a custom child node. How can I make a list of this parent node available as a Select list when I create my child form? and how would I assign this parent id to the child node?

Calling module functions from Ajax

I need to call some module function using Ajax.
On the HTML page I have:

 ... onclick="new_CIDB_obj(this,'<?php
	echo url("click_info_ajax/dir_manager/");
	?>')" ... 

It calls function "click_info_ajax_dir_manager" in module "click_info_ajax" and outputs its result to some element on the page. It works fine.

The problem is that I need to make another similar function.
I copied function "click_info_ajax_dir_manager", renamed it to "click_info_ajax_dir_manager_2", and changed the HTML code to:

 ... onclick="new_CIDB_obj(this,'<?php
	echo url("click_info_ajax/dir_manager_2/");
	?>')" ... 

Now javascript gives a 404 error "page not found"!

I didn't change contents of the function, "click_info_ajax_dir_manager_2" and "click_info_ajax_dir_manager" are absolutely identical.

I'm not sure if hook "menu" has to do with it, but I tried it as follows:


function click_info_ajax_menu($may_cache) {
$items = array();
if ($may_cache) {

$items[] = array(
'path' => 'click_info_ajax/listdir_handler',
'title' => t('click info example'),
'access' => user_access('access content'),
'type' => MENU_CALLBACK,
'callback' => 'click_info_ajax_listdir_handler'
);
$items[] = array(
'path' => 'click_info_ajax/example_handler',
'title' => t('click info example'),
'access' => user_access('access content'),

aggregator links

How to set aggregator links to open in new browser window

Is there a module that provides rating by 4 criteria, like quality, cost, ambience and authenticity

I am new to Drupal and I am already in love: created a whole portal in 3 days.
Here is my question: I am trying to set up a rating system by 4 different criteria: is there a module that can do that?
I need this for Flexinode content type.
Thanks in advance for the answer!

Forms API, file #type, and #tree

I'm writing a custom module for a "conference" node type. It's incredibly complex (multiple tables involved, etc). So I have a local task to edit the schedule for the conference. Each scheduled event can have up to 16 file attachments. I have built my form with:

    $form['schedule'] = array('#tree' => TRUE);

...and inside this tree I have...

Books into Groups

Can I have books into a group? If not;

I would like suggest a moddule to create Books Into a Group (OG)

So

Organic Group can have your own books.
Subscriber of this group can write "Book pages" only to "Book 1 of Group"
Could have a Selection List to choose which book (of group) the subscriber would like to write "Book 1 of Group", "Book 2 of Group" etc..

Best Regards

Mario

Pages

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