If pages are ordered by 'weight', and the lack of k_page_order variable makes life felt wasted, here is a solution (to be pasted in kfunctions.php) -

Code: Select all
// Add "k_page_order" to the context of tags
$FUNCS->add_event_listener( 'alter_page_set_context', 'context_page_order_handler' );
function context_page_order_handler( &$vars, $pg ){
    if( $vars['k_is_page'] ) $vars['k_page_order'] = $pg->k_order;
}


Let me know if it was useful.