summaryrefslogtreecommitdiff
path: root/addons/project
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2016-08-01 15:33:44 +0200
committerqsm-odoo <qsm@odoo.com>2016-08-30 13:57:32 +0200
commitb4a159d2614d64aae8570c49ee79121fdb30676c (patch)
treec3d1137ae109a42d8ff51ee28f55a2b4def759c7 /addons/project
parenta7930e51ece2974dc62de58f3f8b26dc4b7e43e4 (diff)
[IMP] web, website(_*): use web.layout for every web page
The web modules defines a "layout" template which is only used by the login default page. Now the backend template "web.webclient_bootstrap" and the frontend template "website.layout" both use the "web.layout" template as base. Some parameters can be passed to customize the default "web.layout" template: - "head": content will be placed at the end of the <head> tag of the page - "title": to set the title of the page (the <title> tag should not be placed "by hand") - "x_icon": the url for the page icon - "html_data": dictionnary whose key-value pairs will be placed as attribute-value for the <html> tag - "body_classname": the classname to set on the <body> tag Note: xpath expression on the website.layout template can now only find the #wrapwrap element and its children. An expression "//body" will not have any result. If something has to be added in the body element but not in the #wrapwrap element, simply change the xpath <xpath expr="//body" position="inside"> with <xpath expr="//div[@​id='wrapwrap']" position="after">
Diffstat (limited to 'addons/project')
0 files changed, 0 insertions, 0 deletions