Add multimedia URL field and website audio iframe embeds
This commit is contained in:
parent
efae7d5d03
commit
cd54429cf8
5 changed files with 78 additions and 2 deletions
|
|
@ -13,6 +13,16 @@
|
|||
<span t-if="product.autor"><b><t t-out="product.autor" /></b></span>
|
||||
</a>
|
||||
</xpath>
|
||||
<xpath expr="//a[contains(@class, 'o_wsale_product_grid_wrapper')]" position="after">
|
||||
<div t-if="product.multimedia_embed_url" class="o_multimedia_hover_player">
|
||||
<iframe
|
||||
loading="lazy"
|
||||
t-att-src="product.multimedia_embed_url"
|
||||
style="border: none; height: 49.6px; width: 100%;"
|
||||
t-att-title="'Widget de reproductor de audio para %s' % product.name"
|
||||
/>
|
||||
</div>
|
||||
</xpath>
|
||||
</template>
|
||||
<template
|
||||
id="products_item_description"
|
||||
|
|
@ -42,6 +52,14 @@
|
|||
<t t-out="product.subtitle" />
|
||||
</div>
|
||||
<div t-if="product.autor"><b><t t-out="product.autor" /></b></div>
|
||||
<div t-if="product.multimedia_embed_url" class="o_multimedia_product_player mt-3">
|
||||
<iframe
|
||||
loading="lazy"
|
||||
t-att-src="product.multimedia_embed_url"
|
||||
style="border: none; height: 49.6px; width: 100%;"
|
||||
t-att-title="'Widget de reproductor de audio para %s' % product.name"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</xpath>
|
||||
</template>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue