Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie

Trying to replace the navigation (treehouse theme) on the default page (homepage) so that this page wouldn't have any navigation at all in the header but the other pages would have the normal navigation.

Reading the Odoo docs, I created pages.xml and listed it also in the __openerp__.py.


Pages.xml looks like this:

<?xml version="1.0" encoding="utf-8"?>

<openerp>

<data>

<!-- HOMEPAGE - Make a Special home page without navigation

================================================== -->

<!-- === HomePage === -->

<template name="Homepage" id="website.homepage" page="True">

<xpath expr="//header[@id='my_header']/div" position="replace">

<div></div>

</xpath>

</template>

</data>

</openerp>


Anyhow I have no effect with this. I still have a normal homepage navigation. What goes wrong?

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
lis 23
2056
0
lip 24
1011
3
cze 23
9208
1
gru 22
5747
3
lut 18
10022