Set page-specific titles for website, login, and member portal routes while retaining dynamic titles for other pages. Replace the default favicon with the official TNCSC logo. Add TNCSC to the backend title service without losing action names or notification counters. Validated XML, title expressions, manifest entries, JavaScript syntax, and backend action/counter updates against the Odoo 19 title service. Live template rendering still requires deployment and module upgrade.
40 lines
2.0 KiB
XML
40 lines
2.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<template id="browser_branding" inherit_id="web.layout" name="TNCSC Browser Branding">
|
|
<xpath expr="//head/title" position="before">
|
|
<t t-set="title" t-value="{
|
|
'': 'Home | TNCSC',
|
|
'/about': 'About Us | TNCSC',
|
|
'/about/tamil-nadu': 'Tamil Nadu | TNCSC',
|
|
'/about/board-of-directors': 'Board of Directors | TNCSC',
|
|
'/membership': 'Membership | TNCSC',
|
|
'/membership/benefits': 'Membership Benefits | TNCSC',
|
|
'/membership/registration': 'Membership Registration | TNCSC',
|
|
'/event': 'Events | TNCSC',
|
|
'/product/tncsc-summer-picnic-2026': 'Summer Picnic 2026 | TNCSC',
|
|
'/tamil-school': 'Tamil School | TNCSC',
|
|
'/sponsors': 'Sponsors | TNCSC',
|
|
'/contact': 'Contact Us | TNCSC',
|
|
'/my': 'Member Portal | TNCSC',
|
|
'/my/home': 'Member Portal | TNCSC',
|
|
'/my/membership': 'My Membership | TNCSC',
|
|
'/my/school': 'My Tamil School | TNCSC',
|
|
'/web/login': 'Member Login | TNCSC',
|
|
'/web/signup': 'Create Account | TNCSC',
|
|
'/web/reset_password': 'Reset Password | TNCSC',
|
|
}.get(request.httprequest.path.rstrip('/'), title)"/>
|
|
</xpath>
|
|
<xpath expr="//head/title" position="attributes">
|
|
<attribute name="t-esc">title if title and title != 'Odoo' else 'TNCSC'</attribute>
|
|
</xpath>
|
|
<xpath expr="//head/link[@rel='shortcut icon']" position="attributes">
|
|
<attribute name="type">image/png</attribute>
|
|
<attribute name="t-att-href">'/tncsc_deployment/static/src/img/brand/logo.png'</attribute>
|
|
</xpath>
|
|
</template>
|
|
|
|
<record id="website.default_website" model="website">
|
|
<field name="favicon" type="base64" file="tncsc_deployment/static/src/img/brand/logo.png"/>
|
|
</record>
|
|
</odoo>
|