Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedI'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.
Comment #2
broncomania CreditAttribution: broncomania commentedÄ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???
Comment #3
merlinofchaos CreditAttribution: merlinofchaos commentedYou 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.
Comment #4
japerryClosing 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)