Outline/child page ordering

When pages have child pages (and many of ours do), then you need to be carefull with the outline facility.  If you use this to reorder things then it works by changing the weight of the page.  However, if you have a large number of child pages, then the 'reorder by drag and drop' facility gets confused because the weighting can only be from -15 to +15.

The solution is to adopt the following convention:

  • all 'normal' child pages get weight 0
  • all 'extra' child pages get weight 15 - by 'extra' we mean all the little sub-window pages like Confirm Delete

Since pages with equal weight get ordered by title, this arranges things nicely.

For eample with to child pages to http://www.openvpms.org/documentation/csh/1.9/admin/lookup we have as shown below with all the various lookups ordered by name with the three Confirm... 'extras' at the bottom.

Since the default weight for a new page is 0, this means that normally you do not have to set the weight, but only set 15 when adding an 'extras' page.

Syndicate content