Closed

Drupal views page redirection with arguments

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.

Skills: Drupal, HTML, MySQL, PHP, Website Design

See more: drupal views arguments, drupal page arguments, drupal views pages argument, with explanation, use case module, patch design, match page, design argument, design patch, website menu issue, taxonomy, proyectos, drupal projects, around block, drupal views taxonomy, drupal view, block results, category block module, drupal user module, drupal page user, view drupal, views php drupal, patch images, website settings help, display suite

About the Employer:
( 11 reviews ) Denver, India

Project ID: #2501371

9 freelancers are bidding on average $179 for this job

lukeyan

experienced Drupal developer, please check PM for details

$150 USD in 3 days
(198 Reviews)
7.9
humashahid80

Hi immediately ready to start the work. Please check PMB for details.

$250 USD in 10 days
(62 Reviews)
7.0
khanhhuyna

I forgot to attach the screenshot but i understand what you want. Thank you for a detailed explanation. I know what have to do for this. Looking forward to working this for you thanks.

$120 USD in 2 days
(102 Reviews)
6.6
traudong

Hello mate, we are very experienced web developers. We would love to work for you. Please have a look at our profile and consider us. Cheers.

$250 USD in 4 days
(26 Reviews)
6.2
vn2design

hello, please check pmb for details

$150 USD in 1 day
(70 Reviews)
6.1
drupaldelhi

Please check your PM.

$200 USD in 2 days
(40 Reviews)
5.9
bhavinhjoshi

Hello, Please check PM. Regards.

$250 USD in 2 days
(45 Reviews)
5.9
dgitts

Hi trailjobs, Drupal certified developer ready to assist.

$250 USD in 5 days
(8 Reviews)
4.8
Canutza

Ready to start.

$200 USD in 3 days
(23 Reviews)
4.6
Pranjali2986

Hi I am drupal expert, I have worked on multilingual sites. Please check your PM for my work details.

$150 USD in 3 days
(0 Reviews)
0.0
Chandni7

Please Check PMB.

$44 USD in 3 days
(0 Reviews)
0.0