diff --git a/erpnext/portal/doctype/homepage/homepage.js b/erpnext/portal/doctype/homepage/homepage.js index 67979044242d..6739979b9807 100644 --- a/erpnext/portal/doctype/homepage/homepage.js +++ b/erpnext/portal/doctype/homepage/homepage.js @@ -2,14 +2,6 @@ // For license information, please see license.txt frappe.ui.form.on('Homepage', { - setup: function(frm) { - frm.fields_dict["products"].grid.get_field("item").get_query = function() { - return { - filters: {'published': 1} - } - } - }, - refresh: function(frm) { frm.add_custom_button(__('Set Meta Tags'), () => { frappe.utils.set_meta_tag('home'); diff --git a/erpnext/templates/pages/home.html b/erpnext/templates/pages/home.html index 08e0432dcf83..b9b435c7c338 100644 --- a/erpnext/templates/pages/home.html +++ b/erpnext/templates/pages/home.html @@ -26,6 +26,26 @@

{{ homepage.description }}

{{ render_homepage_section(homepage.hero_section_doc) }} {% endif %} + {% if homepage.products %} +
+

{{ _('Products') }}

+ +
+ {% for item in homepage.products %} +
+
+ {{ item.item_name }} +
+
{{ item.item_name }}
+ {{ _('More details') }} +
+
+
+ {% endfor %} +
+
+ {% endif %} + {% if blogs %}

{{ _('Publications') }}