From 1af1f90996848b42d5a2e82693b1de30cb29952c Mon Sep 17 00:00:00 2001 From: touffies Date: Thu, 28 Nov 2013 12:05:03 +0100 Subject: [PATCH] Add SEO tab for a product --- .../backOffice/default/includes/seo-tab.html | 79 +++++++++++++++++++ .../backOffice/default/product-edit.html | 17 +++- 2 files changed, 95 insertions(+), 1 deletion(-) create mode 100644 templates/backOffice/default/includes/seo-tab.html diff --git a/templates/backOffice/default/includes/seo-tab.html b/templates/backOffice/default/includes/seo-tab.html new file mode 100644 index 000000000..9ae515885 --- /dev/null +++ b/templates/backOffice/default/includes/seo-tab.html @@ -0,0 +1,79 @@ +
+ +
+ + {include + file = "includes/inner-form-toolbar.html" + hide_submit_buttons = false + + page_url = {$pageUrl} + close_url = {$closeUrl} + } + + {* Hidden field *} + + + {form_hidden_fields form=$form} + + {form_field form=$form field='success_url'} + + {/form_field} + + {form_field form=$form field='url'} +
+ +
+ {$url_language|default:{config key="url_site"}} + +
+
+ {/form_field} + + + {form_field form=$form field='meta_title'} +
+ +
+ +
+
+ {/form_field} + + {form_field form=$form field='meta_description'} +
+ + + +
+ {/form_field} + + {form_field form=$form field='meta_keyword'} +
+ + + +
+ {/form_field} + + {include + file = "includes/inner-form-toolbar.html" + hide_submit_buttons = false + hide_flags = true + + page_url = {$pageUrl} + close_url = {$closeUrl} + } + +
+
\ No newline at end of file diff --git a/templates/backOffice/default/product-edit.html b/templates/backOffice/default/product-edit.html index e05bc7434..d20d7a953 100644 --- a/templates/backOffice/default/product-edit.html +++ b/templates/backOffice/default/product-edit.html @@ -48,6 +48,8 @@ data-toggle="tab">{intl l="General"} +
  • {intl l="SEO"}
  • +
  • {intl l="Details"}
  • @@ -79,7 +81,7 @@ {intl l="Documents"}
  • {intl l="Modules"}
  • - +
    @@ -87,6 +89,18 @@ {include file="includes/product-general-tab.html"}
    +
    + {form name="thelia.admin.seo"} + {include file="includes/seo-tab.html" + form = $form + currentId = "{$ID}" + formAction = "{url path='/admin/products/seo/save'}" + pageUrl = "{url path='/admin/products/update' product_id=$ID}" + closeUrl = "{url path='/admin/categories' category_id=$DEFAULT_CATEGORY}" + } + {/form} +
    +
    {include file="includes/product-details-tab.html"}
    @@ -110,6 +124,7 @@
    {intl l="Please wait, loading"}
    +