Add extra variables to menu and breadcrumb templates.