Hi, I'm not sure where to put this, but I wanted to alert users to another module that works like this one, but includes the feature of a block, with each step linked to it's appropriate page, so the user does not have to rely on the "back" and "next" buttons to navigate through the form. The module is https://drupal.org/project/multistep. I'm using the version 7-dev without any issues, so far. It works with the https://drupal.org/project/field_group module.

This is an awesome module, but the ability to go directly to the page you want to edit is a huge plus for content creators and editors. Thanks.

Comments

stBorchert’s picture

Status: Active » Closed (works as designed)

You're welcome to have a look at the README.txt and add links to the step information block provided by msnf using a custom preprocess function in your theme (as said before in some other tickets):

<?php
function YOURTHEMENAME_preprocess_msnf_block_step_info(&$vars) { 
  $items = array();

  foreach ($vars['steps'] as $step_name => $step) {
     $item = array(
     'data' => l(msnf_translate(array($step->step_name, $step->bundle, 'label'), $step->label), current_path(), array('query' => array('step' => $step_name),'absolute' => TRUE)),
       'title' => msnf_translate(array($step->step_name, $step->bundle, 'description'), $step->format_settings['instance_settings']['description']),
       'class' => array(
         'msnf-form-step',
      ),
    );
    if ($step->identifier == $vars['current_step']->identifier) {
      // Add "active" class for current step.
      $item['class'][] = 'active';

      // Output item as plain text.
      $item['data'] = msnf_translate(array($step->step_name, $step->bundle, 'label'), $step->label);
    }
    $items[] = $item;
  }
  $vars['steps_rendered'] = theme('item_list', array(
    'items' => $items,
    'attributes' => array(
      'class' => array('msnf-forms-steps'),
    ),
  ));
}
?>
Khalid S’s picture

Thanks @stBorchert. But this process doesn't populate form values of previous steps.