<?xml version="1.0"?>
<data><xpath expr="//group/*" position="before"> <!-- Top -->
            <field name="name" string="Page Title" placeholder="e.g. Home Page"/>
            <field name="website_id" invisible="1"/>

            <label for="url" string="Page URL"/>
            <div class="o_col">
                <field name="url" widget="page_url"/>
                <div class="my-4" invisible="url == old_url">
                    <div class="o_row">
                        <field name="redirect_old_url" widget="boolean_toggle" options="{'autosave': False}"/>
                        <label for="redirect_old_url" string="Redirect Old URL"/>
                    </div>
                    <div class="o_row">
                        <widget name="form_page_dependencies" resModel="website.page" mode="popover"/>
                    </div>
                    <div class="o_row mt-4" invisible="not redirect_old_url">
                        <label for="redirect_type" string="Type"/>
                        <field name="redirect_type"/>
                    </div>
                </div>
            </div>
        </xpath>
        <xpath expr="//group/field[@name='is_published']" position="after">
            <field name="date_publish" widget="datetime"/>
        </xpath>
        <xpath expr="//group/*[last()]" position="after"> <!-- Bottom -->
            <label for="website_indexed" string="Indexed"/>
            <div class="o_row">
                <field name="website_indexed" widget="boolean_toggle" options="{'autosave': False}" help="Hide this page from search results"/>
                <span invisible="website_indexed">Won't appear in search engine results</span>
            </div>

            <field name="visibility"/>
            <field name="visibility_password_display" invisible="visibility != 'password'" required="visibility == 'password'" password="True" string="Password"/>
            <field name="group_ids" invisible="visibility != 'restricted_group'" string="Authorized Groups" widget="many2many_tags"/>
            <field name="is_new_page_template" string="Is a Template" widget="boolean_toggle" options="{'autosave': False}"/>
        </xpath>
    </data>