By pk81 on
Suppose I have a view page, a list domain/training_list_basic
Is there a way to alias this list with language paths:
en/trainings
pl/szkolenia
And disable/hide default view path (training_list_basic)?
Suppose I have a view page, a list domain/training_list_basic
Is there a way to alias this list with language paths:
en/trainings
pl/szkolenia
And disable/hide default view path (training_list_basic)?
Comments
I think the way to do this is
I think the way to do this is to add translated aliases using the url alias core module.
Try following steps for creating translated path:
- Create a Page View and enter the Title and Path in English. i.e Recent Article and 'recent/article'.
- Save your view
- Navigate to your newly created view, so Drupal adds the strings to the translation table.
- Then go to (admin/config/search/path if you are using D7 else go to admin/build/path) and click Add alias
- In Existing system path, enter the URL you just created (eg recent/article).
- In Path alias, enter the URL you want in the other language (Ex. reciente/artículo for Spanish).
- Make sure you set the language to the adjoining language (Ex Spanish) and press Create new alias.
It is how you can create multiple urls for each language. Not sure if there are any better way doing it.
I had a similar problem. I
I had a similar problem. I have a view page path for English and a view page path for Spanish with a different jump-menu header. I enabled the "Path translation" sub-module under the Internationalization module, then went to Configuration->Translation sets->Paths. I added a translation between the English view page path and the Spanish view page path. Works perfectly!
Works perfect
Works perfect. Thank you. You saved me a day
How to translate views paths like node/%/feed
Comments above do well for a views paths like node/read. But how to translate or add alias to paths like category/%/agenda ?
Im my case I have a drupal 8 site with 2 languages. I need to translate path category/%/agenda to /categorie/%/ordre-du-jour.
I'm expecting that I'm not the first to come to this question, and solution already exists. Searching the web with different keywords didn't help to find the right simple answer. Any help is appreciated!
Hi Alex, I'm challenging the
Hi Alex, I'm challenging the same issue now. Did you find a solution meanwhile? Thanks!
For now, I simply made a copy of the page with a different path ("radiateurs/%/%/%" instead of "radiatoren/%/%/%").
Not yet! Thanks for asking. I
Not yet! Thanks for asking. I did the same thing as you. Just cloned my view and used translated path. This was a quick and cheap solution. I do not like it, but it works.
For taxonomy terms it's not a problem since we can set a pattern in /admin/config/search/path/patterns for any language. Taxonomy term view uses this path /taxonomy/term/%
I had the same issue, and
I had the same issue, and creating a path alias for the language solve it.
It would be nice if by translating the view, the path gets translated automatically.
Facing Same issue.
Hi, I am also facing issue translate views page url with * symbol. Is there any way or approach to tackling it.