Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
added 2 characters in body
Source Link
wot
  • 111
  • 3

I have a page that contains 4 separate blocks, from the same view,

Items block 1 - this contains a list of item titles Items block 2 - this contains a different list of item titles Content block 3 contains content unrelated to this functionality Results block 4 - this needs to display the details of the items that are highlighted in the above 2 sections after the user selects 'Next' in list 2.

I've found some information about passing variables to a view using contextual filters, but I'm not clear on exactly how this works still

  • how do I set up a filter - does it go in the source or target block or both?
  • how do I access the value in the target block?
  • how do the values get passed, on the URL, or as session values?

also my situation involves passing variables from 2 view blocks to another view block.

And presumably AJAX would need to be used to load the third view?

I could split the third block into 2 and display results from block one and block two separately, if that's any easier.

But I'm really not sure how to set up a filter or how to use the passed values, or how exactly contextual filters work, any guidance appreciated.

Update: I have updated this question to try to make it clearer what I have and what I need to do.

Thanks to Remy I understand how the filter value is accessible, but I still don't understand the following:

  • To use a contextual filter doIs there something I needhave to create areas 4do to enable a block to be able to receive parameters (and 2) as attachments rather than blocksdoes it need to be an attachment, or child blocks in the footeran embedded view, or othersomething else)?

I have a page that contains 4 separate blocks, from the same view,

Items block 1 - this contains a list of item titles Items block 2 - this contains a different list of item titles Content block 3 contains content unrelated to this functionality Results block 4 - this needs to display the details of the items that are highlighted in the above 2 sections after the user selects 'Next' in list 2.

I've found some information about passing variables to a view using contextual filters, but I'm not clear on exactly how this works still

  • how do I set up a filter - does it go in the source or target block or both?
  • how do I access the value in the target block?
  • how do the values get passed, on the URL, or as session values?

also my situation involves passing variables from 2 view blocks to another view block.

And presumably AJAX would need to be used to load the third view?

I could split the third block into 2 and display results from block one and block two separately, if that's any easier.

But I'm really not sure how to set up a filter or how to use the passed values, or how exactly contextual filters work, any guidance appreciated.

Update: I have updated this question to try to make it clearer what I have and what I need to do.

Thanks to Remy I understand how the filter value is accessible, but I still don't understand the following:

  • To use a contextual filter do I need to create areas 4 (and 2) as attachments rather than blocks, or child blocks in the footer, or other?

I have a page that contains 4 separate blocks, from the same view,

Items block 1 - this contains a list of item titles Items block 2 - this contains a different list of item titles Content block 3 contains content unrelated to this functionality Results block 4 - this needs to display the details of the items that are highlighted in the above 2 sections after the user selects 'Next' in list 2.

I've found some information about passing variables to a view using contextual filters, but I'm not clear on exactly how this works still

  • how do I set up a filter - does it go in the source or target block or both?
  • how do I access the value in the target block?
  • how do the values get passed, on the URL, or as session values?

also my situation involves passing variables from 2 view blocks to another view block.

And presumably AJAX would need to be used to load the third view?

I could split the third block into 2 and display results from block one and block two separately, if that's any easier.

But I'm really not sure how to set up a filter or how to use the passed values, or how exactly contextual filters work, any guidance appreciated.

Update: I have updated this question to try to make it clearer what I have and what I need to do.

Thanks to Remy I understand how the filter value is accessible, but I still don't understand the following:

  • Is there something I have to do to enable a block to be able to receive parameters (does it need to be an attachment, an embedded view, or something else)?
added 460 characters in body
Source Link
wot
  • 111
  • 3

I have a page that contains 34 separate blocks, the user selects one or more items onfrom the first blocksame view, this makes the second block appear. The user then selects one or more items on the second block.

After selecting 'next'Items block 1 - this contains a thirdlist of item titles Items block appears with products related2 - this contains a different list of item titles Content block 3 contains content unrelated to this functionality Results block 4 - this needs to display the selections madedetails of the items that are highlighted in the firstabove 2 blockssections after the user selects 'Next' in list 2.

I've found some information about passing variables to a view using contextual filters, but I'm not clear on exactly how this works still

  • how do I set up a filter - does it go in the source or target block or both?
  • how do I access the value in the target block?
  • how do the values get passed, on the URL, or as session values?

also my situation involves passing variables from 2 view blocks to another view block.

And presumably AJAX would need to be used to load the third view?

I could split the third block into 2 and display results from block one and block two separately, if that's any easier.

But I'm really not sure how to set up a filter or how to use the passed values, or how exactly contextual filters work, any guidance appreciated.

Update: I have updated this question to try to make it clearer what I have and what I need to do.

Thanks to Remy I understand how the filter value is accessible, but I still don't understand the following:

  • To use a contextual filter do I need to create areas 4 (and 2) as attachments rather than blocks, or child blocks in the footer, or other?

I have a page that contains 3 blocks, the user selects one or more items on the first block, this makes the second block appear. The user then selects one or more items on the second block.

After selecting 'next' a third block appears with products related to the selections made in the first 2 blocks.

I've found some information about passing variables to a view using contextual filters, but I'm not clear on exactly how this works still

  • how do I set up a filter - does it go in the source or target block or both?
  • how do I access the value in the target block?
  • how do the values get passed, on the URL, or as session values?

also my situation involves passing variables from 2 view blocks to another view block.

And presumably AJAX would need to be used to load the third view?

I could split the third block into 2 and display results from block one and block two separately, if that's any easier.

But I'm really not sure how to set up a filter or how to use the passed values, or how exactly contextual filters work, any guidance appreciated.

I have a page that contains 4 separate blocks, from the same view,

Items block 1 - this contains a list of item titles Items block 2 - this contains a different list of item titles Content block 3 contains content unrelated to this functionality Results block 4 - this needs to display the details of the items that are highlighted in the above 2 sections after the user selects 'Next' in list 2.

I've found some information about passing variables to a view using contextual filters, but I'm not clear on exactly how this works still

  • how do I set up a filter - does it go in the source or target block or both?
  • how do I access the value in the target block?
  • how do the values get passed, on the URL, or as session values?

also my situation involves passing variables from 2 view blocks to another view block.

And presumably AJAX would need to be used to load the third view?

I could split the third block into 2 and display results from block one and block two separately, if that's any easier.

But I'm really not sure how to set up a filter or how to use the passed values, or how exactly contextual filters work, any guidance appreciated.

Update: I have updated this question to try to make it clearer what I have and what I need to do.

Thanks to Remy I understand how the filter value is accessible, but I still don't understand the following:

  • To use a contextual filter do I need to create areas 4 (and 2) as attachments rather than blocks, or child blocks in the footer, or other?
removed tags from title
Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284

Drupal 7 passing Passing values to a view block

edited title
Link
wot
  • 111
  • 3
Loading
added 50 characters in body
Source Link
wot
  • 111
  • 3
Loading
added 61 characters in body
Source Link
wot
  • 111
  • 3
Loading
Source Link
wot
  • 111
  • 3
Loading