I am trying to create a custom homepage template. In previous versions v11 and before it was done with this code:
<template id="website.homepage" name="testpage">
<t t-call="website.layout">
<div id="wrap">
<h1>TEST</h1>
</div>
</t>
</template>
But now in v12 it isn't working. The homepage always says 'Design your website'. But it was supposed to show the TEST word on the homepage. What am I doing wrong or what has changed?
Thanks, in your code there is one unfinished line - <t-ref="homepage_custom_template" , is it <t ref ? or <t-ref >? I don't find any reference of t-ref in odoo.
I wrote the following code -
But was unsure about the second record part. But it worked with the website.page model record view.
I made a little error in my example indeed, I've already corrected it so it should be fine now.