Using crud in a controller show a list of links using the title of the heading to display a list of the related subheading titles. Sort all by sequence.
db.define_table( 'heading', Field('title'),Field('sequence','integer')) db.define_table( 'subheading', Field('title'),Field('sequence','integer'),Field('heading_id','reference heading')) You can add format='...' as desired. The links should be constructed following this pseudo-code: A(the_heading_title,_href=URL('list_subheadings',args=the_heading_id)) Use components for bonus points. Send answers and explanations to me only. Happy web2py-ing!.