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

Multi part forms for node creation?

Created a new node type, and associated stuff. Works fine.

Want to add multi-part forms to the node, as the node creation success depends on being called in a context. If that context is missing... such as when the user calls it from 'Create content' instead of from my own links that provide the context, I want to prompt the user for the context. I've started to do this by creating a multi part form that checks for the initial context variable. (I pass this in as /node/create/(context number here) in the links I create from other content.

There seems to be two distinct ways to program forms... one that takes in &$node as the input and what is passed to the submit function, and one that takes in $form_id and $form_values. The example listed in the 'how to create multi part forms for 5.x' page seems to be $form_id centric. I'm wondering if the same methods can be applied to the node centric methodology.

Read over much of the forms api and the nodes api looking for clues into how this context is determined. I don't get it. :)

Creating a multipart form as listed using node centric methodology results in the form being submitted when it should I think it should be returning to the form.

Time type for Forms API?

I've just launched www.jogmymemory.co.za and people are complaining that the calendar time-selector is difficult to use.

How can I create a new time-field for the forms API? I've read some docs on the site but they didn't make much sense.

I'd basically be happy with a date field that has drop downs for year, month, day, hour & minute.

Echo variables to page.tpl.php

Hello,

I noticed that with the site serach module, you care allowed to echo, from the page.tpl.php, '$search_box' and it will echo a form with a submit button and a text box.

I was wondering how does that work in relation to the search modules' methods? In the search module there is a method called 'search_box($form_id = 'search_theme_form')' and the form items defined in this method are the items that are echoed when you echo '$search_box'.

creating a blogger or wordpress like service with drupal

Is there a module that would enable a blogger like service where each user could have their own mini-site (with theme)? Right now I'm playing with the blog module + blogtheme which works pretty well together but it would be even better if it applied to all content for that user.

Bibliography import problem

I installed the Bibliography module (nightly snapshot) today. I used Endnote 9 to export in a xml file my library collection; when I import from Biblio settings -> (File type EndNote 8+ XML) I receive this error:

* You must provide a file name
* File was NOT successfully uploaded

Can you help me please? Thanks.

Silvio.

form action change

Hi!

I need to create an upload file form which when got submitted upload a file to another server, not the one drupal running on. So i need to change the action for the form. How can i do that?
The form is created using api. I don't know if it's possible to created manually, i'm to drupal.

Thanks.

Pages

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