misago.core.page.Page, which contains list of all sections belonging to it. Those instances are
misago.core.page.Pageinstances expose following API:
add_section(link, after=None, before=None, visible_if=None, get_metadata=None, **kwargs)
beforearguments should be value of other page
visible_ifargument accepts callable that will be called with args passed to
get_pagesfunction on page render to resolve if link to page should be displayed.
get_metadatacan be callable returning additional computed metadata for this page. All other values passed to function call get preserved in order to make it easy for 3rd party developers to reuse mechanic for their apps.
get_metadatafunctions are called with arguments that were passed to
is_activeargument that controls if selected page is displayed one and
metadatadict if one is defined.
USERCP_URL- Default link to user control panel site.
USERS_LIST_URL- Default link to users lists site.
USER_PROFILE_URL- Default link to user profile site.