Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
4 Risposte
3820 Visualizzazioni

Hi,

I have set-up multiwebsite in Odoo v12 CE. But the footer seems to be shared for all website's. Is there way to customize this?

Kind regards,

Bastiaan

Avatar
Abbandona
Risposta migliore

I am suggest you to customise footer template and, in that you can check which website currently running,

Let's say:

Website-1

Website-2

currently Website-1 is running

you can check in footer template, there is a default variable accessible in qweb called website, based on that you can do this.

Let's say you have two footer template then

<t t-if="website.name == 'Website-1' ">

<t t-call="footer_template_1"/>

</t>

<t t-if="website.name == 'Website-2' ">

<t t-call="footer_template_2"/>

</t>

I hope it will helpful for you

Thanks and regards

Haresh Kansara

Avatar
Abbandona
Autore

Hi Haresh, thank you for this information! I'll try! :-)

Risposta migliore

Hello Bastiaan,

Yes, you can customize the footer according to the website. Odoo Multi Website offers the functionality of installing a theme-based application website wise that lets you set footers according to a website. Different themes have different footer designs that will apply website-wise.


Note: Odoo identify the theme-based application by module name prefix 'theme_'.

Avatar
Abbandona
Autore Risposta migliore

So let say I want my 2 websites to run the same theme but different footer, then I should clone the theme?

Avatar
Abbandona

Which theme are you using?

Autore

Hi Dharmeh, i'm using the out-the-box standard theme.

Post correlati Risposte Visualizzazioni Attività
0
mar 19
3226
2
nov 16
5801
1
mar 15
3980
3
giu 24
2131
6
giu 24
8111