Community mailing list archives
Re: [website] Rewriting url /page/page-name to url / page-nameby
Thanks Paul that's a good point!
But if you need to rewrite each single template this could be a big job in big sites, so a proper automated solution would probably the better way.
Not sure why the website module has at all this /page/ element in there - as it is IMHO worthless and more harming than making it useful.
Ok there are some URLs which can't be used, but this is in most CMS like that. But the front-end should start by default without any extra additional path segment like it is the case in odoo.
On Mon, Nov 23, 2015 at 7:22 PM, Paul Catinean <email@example.com> wrote:
Hello,Yes the route will take www.site.com/page-name and render the template you enter thereIt's also a good solution since if you add some complexity to the page and need custom methods etc you need to update the qwebcontext and end up making a controller anyhowSo you could just as well do it from the start and make a route for each pageRegards,PaulOn Mon, Nov 23, 2015 at 2:12 PM, Cocopapa <firstname.lastname@example.org> wrote:Hi Paulyou mean your solution would be giving out a seo friendly path without website_seo module right?ThanksIt is as simple as creating a controller in a custom module and adding routes for the pages, e.g:from openerp import httpclass CustomModule(http.Controller):@http.route('/page-name', auth='public', website=True)def page(self, **kw):return request.render('external_id.of_template_you_want_rendered')Hi Oleg thanks a lot for that link and explanations. I will have a look at it.Have you tried it also in multilingual sites with language switcher?have a nice dayCoriCori,Just to confirm what Luke is saying. We are using this website_seo module in real production system for customer that migrated from wordpress.So far he is satisfied with functionality.We created our fork for it just to have some small changes https://github.com/xpansa/website-1Also you need to understand that Odoo CMS is quite young and for customers who used wordpress previously and would like migrate to Odoo we always saying - that "you shouldn't expect that Odoo based system will be copy of wordpress". And Odoo has many other strong sides. That saves a lot of time going forward for discussions like - "where is this feature or where is that feature".///
Technical Director, XPANSA Group | ERP, BI, E-commerce, Data Mining and DMS consultingThanks LukeYou mean the website_seo part I guessProvide the base for an improved SEO handling
This module adds a new seo_url field to the website.seo.metadata model. It means all models which inherit website.seo.metadata will have the new seo_url field. In general it affects website modules like website_blog, website_forum, website_hr_recruitment etc. The module itself adds no SEO handling. It is done in additional modules like website_seo_blog.We will check it out. It is sad that odoo is not doing it properly at first place as it advertises itself as a great tool for seo, but good urls are quite important! Especially in multilingual websites.ThanksCoriHiis it possible to rewrite the URL of pages build by the odoo 9 website builderNew pages get url /page/page-name but page is always and stays always page (in English which isn't useful at all.)What would be the best way to achieve seo friendly urls likeurl /page-name/subpage-name/ ....
- i.e. can odoo do it by itself without that /page/ path element, can /page/page-name be mapped to /page-name without the need to define a web controller which renders that page like this.
- i.e. has someone experience with using mod_rewrite for Apache2.4. to achieve this kind of urls if Odoo it self can't manage it.or isn't that possible at all with Odoo.Thanks Cori