Drupal views page redirection with arguments
This project received 11 bids from talented freelancers with an average bid price of $183 USD.Get free quotes for a project like this
This may seem more complex than what it is, I am just providing a detailed explanation to help narrow the issue down.
In a 6.x multilingual drupal site I have a View (Views 3) which lists nodes belonging to a certain Taxonomy.
In the view, there is a page display for each language. The path for each display is "localizedstring/%". % being the view argument, a "Localised Taxonomy Term". The "all" wildcard is used to display all nodes.
The arguments (taxonomy terms) for the view are provided by a block, which is actually another view listing all taxonomy terms as links.
This system works pretty well as long as you don't switch language while . When the path is
When accessing the view through the menu everything works as expected: first the view shows all pages, and if the user clicks on any of the links in the block, the view is updated showing only the nodes in the corresponding category. The path is properly updated so that "localizedstring/%" becomes "localized_string/localized_term".
My trouble is when you switch languages while showing the filtered view as the main view path is not updated to match the selected language and the view produces no results (as it is using the wrong path and term).
Please see screenshots. Main view contains the squared images, the block providing the links/arguments is on the right. Do also note the url.
1. The unfiltered view shows all nodes (English)
2. Filtered view for the term "houses" (English)
3. Language switched to Spanish in the previous view, The path remains unchanged "projects/houses" when it should be "proyectos/casas"
I think the solution could be quite easy for a coder, which I'm not. While looking for a solution for this I came across two possible ways around this, but I can't make them work:
1. Use the i18n views module, which needs a patch to work with Views 3.
2. Use surokeens [url removed, login to view] trick.
Please take those two as options, but don't feel obliged to use them. I am posting them in case they might be useful, but I don't know how or if they would suite my purpose.
Browse Related Skills
Other things people do on Freelancer
Looking to make some money?
- Set your budget and the timeframe
- Outline your proposal
- Get paid for your work
Hire Freelancers who also bid on this project
Looking for work?
Work on projects like this and make money from home!Sign Up Now
- The New York Times
- Wall Street Journal
- Times Online