website.page = old ir.ui.view with page=True
website.redirect is a new mechanism to replace in the futur the ir.attachment
mechanism of redirect.
From now, we don't have a specific /page controller to serve 'page'.
We use a new model website.page which is rendered if none route matches the url
and that the field 'url' on website.page matches the request.httprequest.path.
The order to serve a path is:
- Routes defines in controllers (/shop, /blog, ...)
- ir.attachment with name matching the path
- website.page with url matching the path
- website.redirect with url_from matching the path
- 404
To improve:
- allow regexp in website.redirect model
- allow to edit the view_arch from the page.management via redirect backend
(needed when traceback in the page, or when modifying a js/css/less/...)
1.2 KiB
1.2 KiB
| 1 | id | name | model_id:id | group_id:id | perm_read | perm_write | perm_create | perm_unlink |
|---|---|---|---|---|---|---|---|---|
| 2 | access_website_public | website | website.model_website | 1 | 0 | 0 | 0 | |
| 3 | access_website | website | website.model_website | group_website_designer | 1 | 1 | 1 | 1 |
| 4 | access_website_menu | access_website_menu | model_website_menu | 1 | 0 | 0 | 0 | |
| 5 | access_website_menu_designer | Web Menu Manager | model_website_menu | group_website_designer | 1 | 1 | 1 | 1 |
| 6 | access_website_redirect | access_website_redirect | model_website_redirect | 1 | 0 | 0 | 0 | |
| 7 | access_website_redirect_designer | Web Redirect Manager | model_website_redirect | group_website_designer | 1 | 1 | 1 | 1 |
| 8 | access_website_page | access_website_page | model_website_page | 1 | 0 | 0 | 0 | |
| 9 | access_website_page_designer | Web Page Manager | model_website_page | group_website_designer | 1 | 1 | 1 | 1 |
| 10 | access_website | web menu manager | website.model_website | group_website_designer | 1 | 1 | 1 | 1 |
| 11 | access_website_ir_ui_view | access_website_ir_ui_view | model_ir_ui_view | group_website_designer | 1 | 1 | 1 | 1 |
| 12 | access_seo_public | access_seo_public | model_website_seo_metadata | 1 | 0 | 0 | 0 | |
| 13 | access_seo_public | access_seo_manager | model_website_seo_metadata | group_website_designer | 1 | 1 | 1 | 1 |
| 14 | access_seo_designer | access_seo_designer | model_website_seo_metadata | group_website_designer | 1 | 1 | 1 | 1 |