-
Notifications
You must be signed in to change notification settings - Fork 64
Description
See https://www.cloudscribe.com/forum/thread/how-can-i-have-breadcrumbs-on-some-page-and-not-others
Needs a bit of thought about how best to implement this. We wouldn't want to show a page setting that appears to switch on a breadcrumb trail if it's not present in the theme layout. Can SimpleContent be aware as to whether the theme does or does not include the breadcrumb component?
This is included by default in our bootstrap 4 sample themes as follows:
@await Component.InvokeAsync("Navigation", new { viewName = "Bootstrap4Breadcrumbs", filterName = NamedNavigationFilters.Breadcrumbs, startingNodeKey = "" })
But we could have a page setting that hides the breadcrumb - that would not be as confusing, as an editor would not use it if no breadcrumbs are displaying on the site. Ideally the setting would only appear if breadcrumbs are included in the layout - see previous question!