When I edit a skeleton, I can assign a weight to each template. As I understand it, this is supposed to determine the order of the pages (child nodes) in the book navigation menu. When I create a new instance of a skeleton, the links to the book pages always appear in alphabetic order, independent of the weights.

Comments

martin mayer’s picture

Title: Weight of templates does not influence oder in book navigation » Weight of templates does not influence order in book navigation

I found out that the field "weight" of the child nodes in the database table menu_links is not set. If I set them with phpMyAdmin the links appear in the correct order. But I still can not see, how the skeleton module could set them.

martin mayer’s picture

Just found the solution. Inserting this in skeleton_istance.inc after line 767 will do it:
$node['values']['book']['weight'] = $data->weight;

Sorry, I'm not sure how I could submit this as a formally correct patch.

deviantintegral’s picture

StatusFileSize
new728 bytes

Thanks for the report. The fix in #2 works for me as well. I've attached the patch which I'll be committing shortly.

For creating and applying patches, see http://drupal.org/patch. Once you've done it once, it's easy :)

deviantintegral’s picture

Status: Active » Fixed

Committed to HEAD.

Status: Fixed » Closed (fixed)

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