Hello,
i have a standard multilingual (prefix-based) site.
I have a view that displays all the nodes, and it should be reached through these URLs:
/my-url-in-english
/it/my-italian-url
What do you think is the best way to accomplish this?
Actually, i created 2 page displays for the same view, with different urls and different filtering criteria regarding node translation... but i feel it's the wrong way.
Creating a single view and a single page display, with filtering based on "language selected by user", works fine for /it/path, but uncorrectly shows all nodes on the default (/my-english-url) path. Also, i wouldn't know how to translate the path under /it/ (path translation requires 2 working paths)
Any tips?
Thanks!
Comments
It looks like that single
It looks like that single view with different language-specific aliases is the best way.
The only problem is that /it/english-path doesn't throw a 404, but shows the same results of /it/italian-aliased-path, leading to duplicate content (bad for google).
Any workaround for this?
i18n page views
You might try the i18n page views module to create the same view with different URLs per language.
Good luck,
Kristen
-Kristen
Profile: https://www.linkedin.com/in/kristenpol
Drupal 7 Multilingual Sites: http://kristen.org/book