-
- Downloads
[IMP] website: create special extension page redirect backend + own template
Before this commit: 1. You could create a page with supported extension in the path (eg: myfile.js) You would then be redirected to the webeditor (myfile.js?enable_editor..) But in this case, it would just redirect you to a plain text page without odoo layout because supported extension are rendered with a specific mimetype. (is it is a .js page, it will just render the page content as a js file) 2. These kind of page would still call t-layout that you should be removed in backend in order to make it work Now: 1. You will be automatically redirected to the back end to edit your file instead of landing on a text-only page. 2. Supported extension now have their own template (eg: .js file now have <script text=..> tag added automatically in their content)
Showing
- addons/http_routing/models/ir_http.py 9 additions, 7 deletionsaddons/http_routing/models/ir_http.py
- addons/website/controllers/main.py 13 additions, 2 deletionsaddons/website/controllers/main.py
- addons/website/models/ir_http.py 1 addition, 1 deletionaddons/website/models/ir_http.py
- addons/website/models/website.py 3 additions, 2 deletionsaddons/website/models/website.py
- addons/website/views/website_templates.xml 28 additions, 0 deletionsaddons/website/views/website_templates.xml
- addons/website_event/models/event.py 1 addition, 1 deletionaddons/website_event/models/event.py
Loading
Please register or sign in to comment