Welcome | Get started | Dive | Contribute | Topics | Reference | Changes | More
Breadcrumbs¶
Actor.get_breadcrumbs() yields a series of <a> tags or simple strings
to be joined together as breadcrumbs with an » between them, and this
string is then placed above the title of a detail page.
The admin interface shows breadcrumbs above every detail page. The publisher interface shows them above the title of every page.
The admin interface adds the title of the current page to the end of the breadcrumbs. The publisher does not do this because it displays this title prominently below the breadcrumbs.
The default breadcrumbs have only one item: a link back to the list.
Customizing breadcrumbs¶
The publisher.Pages.get_breadcrumbs() method overrides the default
behaviour to yield all parents of the current page and does not include a linke
to the list. This is tested in in noi2.
In Lino Prima we override lino.core.model.Model.get_parent_links to yield an additional breadcrumb, which returns to the group, which becomes a kind of home page for a teacher when navigating through the labyrinth of tests and scores and projects inside a group..