diff options
| author | Jeremy Kersten <jke@odoo.com> | 2020-07-07 13:04:33 +0000 |
|---|---|---|
| committer | Jeremy Kersten <jke@odoo.com> | 2020-07-07 13:11:57 +0000 |
| commit | c387ec19b4648ae52bf3210253febd7825745627 (patch) | |
| tree | 5e30ad124116493b2e72cc3f26b8a7dc9f5b9e3c /addons/website/static/src/xml | |
| parent | 30e4873a2f9ac7bd35c3b2cb5d2a0b63846263c2 (diff) | |
[IMP] website: allow to have custom slug Ux
Now, slug uses seo_name if field exists before to fallback on display_name.
It allow to have a custom url without change the product name already used in
backend e.g. or just because you want add some keywords for seo.
task-2291676
closes odoo/odoo#54152
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Diffstat (limited to 'addons/website/static/src/xml')
| -rw-r--r-- | addons/website/static/src/xml/website.seo.xml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/addons/website/static/src/xml/website.seo.xml b/addons/website/static/src/xml/website.seo.xml index e1d4aeafafc..65b86bebb84 100644 --- a/addons/website/static/src/xml/website.seo.xml +++ b/addons/website/static/src/xml/website.seo.xml @@ -71,6 +71,20 @@ <textarea name="website_meta_description" id="website_meta_description" placeholder="Keep empty to use default value" class="form-control"/> <div class="alert alert-warning mt16 mb0 small" id="website_meta_description_warning" style="display: none;"/> </div> + <div class="form-group" t-if='widget.canEditUrl'> + <label for="website_seo_name"> + Custom Url <i class="fa fa-question-circle-o" t-att-title="widget.seoNameHelp" /> + </label> + <div class="input-group"> + <div class="input-group-prepend"> + <span class="input-group-text seo_name_pre"></span> + </div> + <input type="text" name="website_seo_name" id="website_seo_name" class="form-control" t-att-placeholder="widget.seoNameDefault" /> + <div class="input-group-append" title="Unalterable uniq identifier"> + <span class="input-group-text seo_name_post"></span> + </div> + </div> + </div> </div> <div class="col-lg-6"> <div class="card-header">Preview</div> |
