Passa al contenuto
Odoo Menu
  • Accedi
  • Provalo gratis
  • App
    Finanze
    • Contabilità
    • Fatturazione
    • Note spese
    • Fogli di calcolo (BI)
    • Documenti
    • Firma
    Vendite
    • CRM
    • Vendite
    • Punto vendita Negozio
    • Punto vendita Ristorante
    • Abbonamenti
    • Noleggi
    Siti web
    • Configuratore sito web
    • E-commerce
    • Blog
    • Forum
    • Live chat
    • E-learning
    Supply chain
    • Magazzino
    • Produzione
    • PLM
    • Acquisti
    • Manutenzione
    • Qualità
    Risorse umane
    • Dipendenti
    • Assunzioni
    • Ferie
    • Valutazioni
    • Referral dipendenti
    • Parco veicoli
    Marketing
    • Social marketing
    • E-mail marketing
    • SMS marketing
    • Eventi
    • Marketing automation
    • Sondaggi
    Servizi
    • Progetti
    • Fogli ore
    • Assistenza sul campo
    • Helpdesk
    • Pianificazione
    • Appuntamenti
    Produttività
    • Comunicazioni
    • Approvazioni
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    App di terze parti Odoo Studio Piattaforma cloud Odoo
  • Settori
    Retail
    • Libreria
    • Negozio di abbigliamento
    • Negozio di arredamento
    • Alimentari
    • Ferramenta
    • Negozio di giocattoli
    Cibo e ospitalità
    • Bar e pub
    • Ristorante
    • Fast food
    • Pensione
    • Grossista di bevande
    • Hotel
    Agenzia immobiliare
    • Agenzia immobiliare
    • Studio di architettura
    • Edilizia
    • Gestione immobiliare
    • Impresa di giardinaggio
    • Associazione di proprietari immobiliari
    Consulenza
    • Società di contabilità
    • Partner Odoo
    • Agenzia di marketing
    • Studio legale
    • Selezione del personale
    • Audit e certificazione
    Produzione
    • Tessile
    • Metallo
    • Arredamenti
    • Alimentare
    • Birrificio
    • Ditta di regalistica aziendale
    Benessere e sport
    • Club sportivo
    • Negozio di ottica
    • Centro fitness
    • Centro benessere
    • Farmacia
    • Parrucchiere
    Commercio
    • Tuttofare
    • Hardware e assistenza IT
    • Ditta di installazione di pannelli solari
    • Calzolaio
    • Servizi di pulizia
    • Servizi di climatizzazione
    Altro
    • Organizzazione non profit
    • Ente per la tutela ambientale
    • Agenzia di cartellonistica pubblicitaria
    • Studio fotografico
    • Punto noleggio di biciclette
    • Rivenditore di software
    Carica tutti i settori
  • Community
    Apprendimento
    • Tutorial
    • Documentazione
    • Certificazioni 
    • Formazione
    • Blog
    • Podcast
    Potenzia la tua formazione
    • Programma educativo
    • Scale Up! Business Game
    • Visita Odoo
    Ottieni il software
    • Scarica
    • Versioni a confronto
    • Note di versione
    Collabora
    • Github
    • Forum
    • Eventi
    • Traduzioni
    • Diventa nostro partner
    • Servizi per partner
    • Registra la tua società di contabilità
    Ottieni servizi
    • Trova un partner
    • Trova un contabile
    • Incontra un esperto
    • Servizi di implementazione
    • Testimonianze dei clienti
    • Supporto
    • Aggiornamenti
    GitHub Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Richiedi una demo
  • Prezzi
  • Aiuto

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Contabilità
  • Magazzino
  • PoS
  • Progetti
  • MRP
All apps
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
Assistenza

[Odoo V8 - WebsiteBuilder module] Page content in another page

Iscriviti

Ricevi una notifica quando c'è un'attività per questo post

La domanda è stata contrassegnata
website_builderodooV8
3 Risposte
3248 Visualizzazioni
Avatar
Tessa Roberts

Hi !


First, I would like to apologize because English is not my native language.

I have a question about the WebsiteBuilder module in Odoo V8.

I am a beginner on Odoo...so I am trying things to see if it works or not.


I would like to know if it possible to display a page content (or a part of a page content) in another page.

To be clear, I have created 2 pages. PageX and PageY.

I'd like to display the content of PageY on PageX.


I tried to "just" call the page name, like that :


<t t-name="PageY"> 
<t t-call="website.layout">
<div id="wrap" class="oe_structure oe_empty">
<div class="oe_structure">
PageY content
</div>
</div>
</t>
</t>

<t t-name="PageX">
<t t-call="website.layout">
<div id="wrap" class="oe_structure oe_empty">
<div class="oe_structure">
PageX content
<t t-call="PageY" />
</div>
</div>
</t>
</t>

This works but on PageX, the header, the menu and the footer are display twice. (That is normal...)

Is there a way to add only the content of the page ?

Something like that : 

<t t-name="PageY"> 
<t t-call="website.layout">
<div id="wrap" class="oe_structure oe_empty">
<div class="oe_structure">
<t t-name="pageY_content">PageY content</t>
</div>
</div>
</t>
</t>

<t t-name="PageX">
<t t-call="website.layout">
<div id="wrap" class="oe_structure oe_empty">
<div class="oe_structure">
PageX content
<t t-call="pageY_content" />
</div>
</div>
</t>
</t>

I tried but the t-name="PageY_content" declaration is not recognized by the system.

I tried to create a "hidden page" (not visible by the menu) and called it "PageY_content". I have the following error :

Odoo Warning

ValidateError

Field(s) 'arch' failed against a constraint:Invalid view definition

Error details: Model not found : False

Error content : View 'pageX' [view_id:xxxx, xml_id:website.pageX,> model:n/a, parend_id:n/a]


I would like to know if there is a way to have this result "properly" ? 

Is the "PageCeption" system impossible to implement or contrary to a good use of the module?

Would it be possible, using the HTML editor, to create the content elsewhere and be able to call it wherever I want?


Thank you in advance for your assistance

0
Avatar
Abbandona
Tessa Roberts
Autore

Hi !

Thanks for your help !

Do you know where I need to create this template ? I tried to add it in the website_templates.xml file and then I "updgraded" the website builder module.

But when I try to call it in one of my pages, I have the following error :

500 : Internal Server Error

Error message : Invalid template id 'contentY_id'

QWeb Error message : Loader could not find template 'contentY_id'

Do you know how to solve this problem ? And is there a way to display the new template in the HTML editor ?

Avatar
Tessa Roberts
Autore Risposta migliore

Hi !

I finally managed to call the template anywhere I want.

And I managed to display it in the HTML editor. But now, do you know if there is a way to "edit" the content of the template using the graphical editor (instead of the HTML editor) of the website module ? 

My new template is not really a page, so I can not access it from a menu or from the URL. I can only edit it using the HTML editor.

 

<t t-name="mytemplate"> Editable in the HTML editor but not editable using the graphical editor
<!-- content of my template -->
</t>

<t t-name="myPage"> Editable in the HTML editor AND editable using the graphical editor
<!-- content page -->
<t t-call="mytemplate" /> (this display the content of mytemplate)
</t>

<t t-name="myOtherPage"> Editable in the HTML editor AND editable using the graphical editor
<!-- content page -->
<t t-call="mytemplate" /> (this display the content of mytemplate)
</t>
0
Avatar
Abbandona
Avatar
Bharat Parmar (bhp)
Risposta migliore

create one template that you need to use in both page and don't use <t t-call="website.layout"> in this template .

<template id="contentY_id">
     <!--Your_pageY_content-->
</template>

and use this template in both page like this,

<t t-name="PageX">
    <t t-call="website.layout">
        <div id="wrap" class="oe_structure oe_empty">
            <div class="oe_structure">

                <!--Your_pageX_content-->

                <t t-call="contentY_id"/>
            </div>
        </div>
    </t>
</t>

<t t-name="PageY">
    <t t-call="website.layout">
        <div id="wrap" class="oe_structure oe_empty">
            <div class="oe_structure">
                <t t-call="contentY_id"/>
            </div>
        </div>
    </t>
</t>

I hope this will helps you. 

0
Avatar
Abbandona
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!

Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!

Registrati
Post correlati Risposte Visualizzazioni Attività
Odoo V8 with Internet Explorer
compatibility website_builder odooV8
Avatar
0
set 16
7114
(((Guia~JetBlue!@!Oficial^Hablo//+182)) ¿Cómo llamar a JetBlue desde República Dominicana?
website_builder
Avatar
0
dic 25
41
(((Guia~ Latam!@!Oficial^Hablo//0800))) ¿Cómo llamar a LATAM Airlines desde Chile?
website_builder
Avatar
0
dic 25
142
Website Builder theme breaks after upgrading to Odoo 17 — CSS not loading
website_builder
Avatar
0
dic 25
32
AssertionError while install Appoinment in website
website_builder
Avatar
Avatar
Avatar
2
nov 25
515
Community
  • Tutorial
  • Documentazione
  • Forum
Open source
  • Scarica
  • Github
  • Runbot
  • Traduzioni
Servizi
  • Hosting Odoo.sh
  • Supporto
  • Aggiornamenti
  • Sviluppi personalizzati
  • Formazione
  • Trova un contabile
  • Trova un partner
  • Diventa nostro partner
Chi siamo
  • La nostra azienda
  • Branding
  • Contattaci
  • Lavora con noi
  • Eventi
  • Podcast
  • Blog
  • Clienti
  • Note legali • Privacy
  • Sicurezza
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo è un gestionale di applicazioni aziendali open source pensato per coprire tutte le esigenze della tua azienda: CRM, Vendite, E-commerce, Magazzino, Produzione, Fatturazione elettronica, Project Management e molto altro.

Il punto di forza di Odoo è quello di offrire un ecosistema unico di app facili da usare, intuitive e completamente integrate tra loro.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now