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

Multiple Forms in one single page.

Hello!

Since I am new to Drupal world, it's not clear to me - on how to solve this problem:

In one single web page, I want to display 4 forms and 1 submit button for each form. If user enter values for one of the form & clicks on that submit button of that form, I would like the user to redirect to different page, rendering him the results of his submission.

But in drupal, I am not able to assemble several forms in one single page. 'Blocks' seems to be applicable all through out the application & not in a single page.

Any help is much appreciated.

Drop down menu auto population

Hello!

I am new to Drupal. So excuse me, if it is a stupid question.

Using CCK, I added 3 new fields to a 'Forum Topic':

- Continent
- Country
- Tags

When user selects 'Continent' from the drop down menu, based on his selection, we want to automatically populate 'Country' drop down menu. Suppose if user select 'Asia' in the 'Continent' drop down menu, then automatically, we want to populate country field asian country values 'India', 'China', 'Singapore'...

Music Review Site: CCK or Taxonomy?

First, I have to say that I'm loving the Pro Drupal Development book and am learning a ton. I can't wait to put it into practice. I'm sure this question will come into better resolution as I keep reading, but I would sure help some input right now as well.

I'm working on implementing a music review site, the most of which is CD reviews. It makes sense to me to have an Album content type and a Album Review type and fit them together with a node reference, I think. This would help because there are often Albums without reviews and there could be more than one review of an album (although it won't happen often).

breadcrumb issues in a callback function

Hi.

I have come across something very odd. I have a callback function which is set in the hook_menu function for my module. In the callback, I change the breadcrumb like this:

$breadcrumb = array();
$breadcrumb[] = array('path' => 'competitions', 'title' => t('competitions'));
$breadcrumb[] = array('path' => 'node/'.$node->nid, 'title' => $title);
$breadcrumb[] = array('path' => 'node/'.$node->nid.'/competition/mosaic', 'title' => t('Mosaic'));
menu_set_location($breadcrumb);

Invision/IPBForum Integration To Be Released

Just throwing out a teaser, an Invision Power Board integration module will be released soon. Just getting the "underwritting" working correct. I'd like to get a feel for interest as I'd like to get some voluteers for bug-shaking and watch the queue for it closley.

The module is more than meets the eye. It's a faily complex syncing module that also show's the Invision system "inline" as content when you're viewing the forum (as an iFrame). However, Drupal is "King". All authentication is handled by drupal. Invision looks to drupal for authentication, and all registration is handled through Drupal.

The module uses cURL, and cURL must be enabled.

The module also handles the following situations.
Problem Sets:

Problem: User is in the Invision system, but not the drupal system.
Solution: When the user try's to login into the Invision system, they are redirected to the drupal /user page for login.

Problem: User is in the Drupal system but not the Invision system.
Solution: The module comes with a setting called "auth-regsiter" that you can check. When checked, if a user is authenticated in the D (Drupal) system, but not IV (Invision), they are automatically registered into the IV system, and the D system continues on un-beknown to the user.

Problem:User is in neither system

Multiple nodes in module with child/parent relationship

Hi,

I'm trying to figure out the recommended way of implementing a module that has two new node types in a child parent relationship. I recognize that I can define multiple nodes like:

function qdrupal_node_info() {
  return array(
    'qcodo_application' => array(
      'name' => t('Qcodo Application'),
      'module' => 'qcodo_application',
      'description' => t('Create a new Qcodo Application'),
      'title_label' => t('Qcodo app'),
      'body_label' => t('Create an application'),
    ),
    'qcodo_page' => array(
      'name' => t('Qcodo Page'),
      'module' => 'qcodo_page',
      'description' => t('Add a new Qcodo page to an application'),
      'title_label' => t('Qcodo page'),
      'body_label' => t('Create an application page'),

    ),
  );
}

A qcodo_application can have multiple qcodo_pages, and qcodo_pages can only have one qcodo_application.
Then I can use qcodo_page_insert, and qcodo_application_insert (and the rest of the node hooks) respectively. But then I hit a stumbling block.

I looked at other modules for a child/parent example (blog, forum and book) which all seem to be candidates for child-parent relationships, but all three of them define only one node type. They each seem to handle the parent relationship differently and I'm not clear as to how, or what the recommended approach should be.

Pages

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