From 4ecbacaf59576a22ff45615a5aa5c67244e4fb93 Mon Sep 17 00:00:00 2001 From: rde Date: Fri, 15 Sep 2017 12:36:59 +0200 Subject: [ADD] website: add new page management 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/...) --- addons/website/static/src/xml/website.contentMenu.xml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'addons/website/static/src/xml/website.contentMenu.xml') diff --git a/addons/website/static/src/xml/website.contentMenu.xml b/addons/website/static/src/xml/website.contentMenu.xml index 4d3ba998ef0..a5b7590ba53 100644 --- a/addons/website/static/src/xml/website.contentMenu.xml +++ b/addons/website/static/src/xml/website.contentMenu.xml @@ -8,7 +8,7 @@ - +