I'm able to assign step number all of the extra fields except Location (not using CCK field) and it appears in all steps. Where do I change the step number?

Thanks,
=gk

CommentFileSizeAuthor
#1 658808.patch655 bytesvkareh

Comments

vkareh’s picture

Project: Multistep (D7) » Location
Version: 6.x-1.4 » 6.x-3.0
Component: User interface » Code
Status: Active » Needs review
StatusFileSize
new655 bytes

For any type of non-CCK field to be captured by the multistep module, it has to implement hook_content_extra_fields(). That way, multistep will treat it as a CCK field, even though it's not, and you can then assign weight in the node edit form. (That's how Taxonomy works, for example).

I've included a patch for the Locations module to fix this.

If you'd rather not patch the Locations module, keep in mind that multistep works fine with Location CCK, so I suggest you use that one in the meantime.

yesct’s picture

tagging. seems to be a small patch, isolated, that wont effect much else.

can someone try the patch against the dev version to see if it applies to that too?

vkareh’s picture

Version: 6.x-3.0 » 6.x-3.x-dev

My mistake, the patch is not needed for the dev version.

vkareh’s picture

Status: Needs review » Fixed

Marking as fixed, since it was already in dev.

yesct’s picture

huh? It's in the dev? Are you sure?

vkareh’s picture

Yep, open up location_node.module and look for line 206.

/**
 * Implementation of hook_content_extra_fields().
 *
 * For being able to edit location weight in node forms and node view.
 */
function location_node_content_extra_fields($type_name) {
  $settings = variable_get('location_settings_node_'. $type_name, array());
  if (isset($settings['multiple']) && $settings['multiple']['max'] > 0) {
    $weight = isset($settings['form']['weight']) ? $settings['form']['weight'] : 0;
    $extra['locations'] = array(
      'label' => t('Locations'),
      'description' => t('Node Locations module form.'),
      'weight' => $weight,
    );
    return $extra;
  }
}
yesct’s picture

removing the tag, since, it seems, this is already incorporated.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.