Merge pull request #24171 from deepeshgarg007/breadcrum_schema

fix: Add breadcrumbs to item group page
This commit is contained in:
Deepesh Garg 2020-12-23 16:52:48 +05:30 committed by GitHub
commit aa7ab211be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -1,5 +1,9 @@
{% extends "templates/web.html" %}
{% block breadcrumbs %}
{% include "templates/includes/breadcrumbs.html" %}
{% endblock %}
{% block header %}<h1>{{ name }}</h1>{% endblock %}
{% block page_content %}

View File

@ -15,6 +15,9 @@ def get_context(context):
context.items = get_products_for_website(field_filters, attribute_filters, search)
# Add homepage as parent
context.parents = [{"name": frappe._("Home"), "route":"/"}]
product_settings = get_product_settings()
context.field_filters = get_field_filter_data() \
if product_settings.enable_field_filters else []