diff options
| author | Kishan Gajjar <kig@odoo.com> | 2018-06-08 11:06:40 +0530 |
|---|---|---|
| committer | Jeremy Kersten <jke@odoo.com> | 2018-08-22 14:01:32 +0200 |
| commit | 156955de6b4e6288ac606d29b843081842154eff (patch) | |
| tree | 5ccd8d491e3f03741d019106195579d5053a5175 /addons/web/static/tests/fields/basic_fields_tests.js | |
| parent | 05a9a095fb652360b31f21aa7296b049ceb0d196 (diff) | |
[ADD] website: Added a feature to set opengraph/twitter meta image from SEO dialog.
With this commit now user can set custom meta image from the seo dialog. If the
user sets such image then it will be displayed when the user shares that URL in
social sites.
By default, it will show the list of images used in the current page.
Alternatively, user can use media dialog to select/upload images. By default, it
will take the company logo as a meta-image.
We also improved how custom meta tags are handled for different pages, Now we can
set custom meta tags based on the model and we can override '_default_website_meta'
method in case you want to change default meta values from the specific model.
e.g. For products displayed on the shop, if we want to change the value of
og:image to product specific images instead of default logo
In future, it will be used to add model specific metas like og:price, og:currency
We passed 'website_company_id' in frontend session info because we display
company logo in dialog for all pages. We can't use /logo.png as it is not
updating in multicompany and multiwebsite.
task id: 1835370
Closes: #25430
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
0 files changed, 0 insertions, 0 deletions
