Skip to Content
  • +31 653-919-302
Cafayate.Net
  • 0
  • 0
  • Sign in
  • Nederlands English (US) Español (AR)
  • Contact Us
  • Home
  • Blog
  • Jobs
  • Contact us
Cafayate.Net
  • 0
  • 0
    • Home
    • Blog
    • Jobs
    • Contact us
  • +31 653-919-302
  • Nederlands English (US) Español (AR)
  • Sign in
  • Contact Us

Odoo Website Builder – Simple Website Menu Features to Copy and Delete Web CMS Pages

  • All Blogs
  • Tech Blog
  • Odoo Website Builder – Simple Website Menu Features to Copy and Delete Web CMS Pages
  • March 5, 2021 by
    Administrator

    To implement Page Copy and Page Delete menu options, changes have been made in following four files:

    — website/controllers/main.py Functions: pagecopy, pagedelete

    — website/models/website.py Functions: copy_page, delete_page

    — website/static/src/js/website.contentMenu.js Functions: copy_page, delete_page

    To create entry points (menu options in top menu bar), following XML file must be changed to include two new lines:

    — website/static/views/website_backend_navbar.xml (line 56)

     <li groups="base.group_website_designer"><a href="#" data-action="copy_page">Copy Page</a></li> 
     <li groups="base.group_website_designer"><a href="#" data-action="delete_page">Delete Page</a></li>

     

    More information

    https://github.com/dapoaugury/odoo/tree/website_edit

     

     

    in Tech Blog
    Odoo payment website integration

    Designed for companies

    We are a team of passionate people whose goal is to improve everyone's life through disruptive products. We build great products to solve your business problems. Our products are designed for small to medium size companies willing to optimize their performance.

    Get in touch

    Plantexel
    Pedernera
    Salta Capital 
    Argenina

    • +31 653-919-302
    • [email protected]
    Follow us
    Copyright © Plantexel
    Nederlands | English (US) | Español (AR)