Is it possible to use wizard.inc to have node form multisteps? - The multistep is that tutorial work only on nodes defined with hook_node_info()

Comments

merlinofchaos’s picture

I'm honestly not sure. Node forms are their own special hell because they are a mishmash. Previews are weird and because they are nodeapi I am not sure. The wizard tool requires storing configuration in an intermediate state.

It would be fun to play around with it and see if we can create a node form that supports hook_nodeapi and form alters properly. It'd require not using the normal node_form_submit but we might be able to fake that.

It'd take a significant coding effort to do this. It'd be pretty rad if it could be made to work, though.

broncomania’s picture

Ähm so one question. I can't currently use ctools multistep forms in hook_form? because i try to do this but without any success. so is ctools not an alternative???

merlinofchaos’s picture

You cannot use the form wizard in hook_form, no. In order to do a multi-step node form, you' dhave to take over the node add form and then do the 'real' node bits at the end.

japerry’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Closing this issue as outdated as Drupal 6 ctools is not supported. If this issue is relevant for Drupal 7, feel free to re-open and mark for Drupal 7 (or 8)