Community mailing list archives
Re: [website] Rewriting url /page/page-name to url / page-nameby
you mean your solution would be giving out a seo friendly path without website_seo module right?
On Mon, Nov 23, 2015 at 6:47 PM, Paul Catinean <firstname.lastname@example.org> wrote:
It 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')On Mon, Nov 23, 2015 at 1:03 PM, Cocopapa <email@example.com> wrote: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