Community mailing list archives
Re: [website] Rewriting url /page/page-name to url / page-nameby
It is as simple as creating a controller in a custom module and adding routes for the pages, e.g:
from openerp import http
@http.route('/page-name', auth='public', website=True)
def page(self, **kw):
On Mon, Nov 23, 2015 at 1:03 PM, Cocopapa <firstname.lastname@example.org> 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 dayCoriOn Mon, Nov 23, 2015 at 5:42 PM, Oleg Kuryan <email@example.com> wrote:Cori,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 consultingOn Mon, Nov 23, 2015 at 10:03 AM, Cocopapa <firstname.lastname@example.org> wrote:Thanks 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.ThanksCoriOn Mon, Nov 23, 2015 at 1:42 PM, Luke Branch <email@example.com> wrote:Hiis 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