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.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 423220_skeleton_template_weight_3.patch | 728 bytes | deviantintegral |
Comments
Comment #1
martin mayer commentedI 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.
Comment #2
martin mayer commentedJust 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.
Comment #3
deviantintegral commentedThanks 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 :)
Comment #4
deviantintegral commentedCommitted to HEAD.