Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does Drupal Views decide between multiple displays with the same path

I need to have a Views that is different for different roles. But, I don't know what will happen when a customer meets the requirements for all the displays for that View. Which display will she see?

like image 861
dkinzer Avatar asked Jul 08 '26 03:07

dkinzer


1 Answers

If you're referring to the display within the views: each view display has a position and the displays are loaded according to that position in an ascending sort. So if you create a page display (which may get a position of 2 since the Default display typically has a position of 1) and then create another page display after that, the next page display may get a position of 3. The customer will be exposed to the position it reaches first (2, provided that they have met the criteria).

If you're referring to the views themselves: views are loaded in order of their view id (vid). The customer will be exposed to the first one loaded.

like image 57
Andrew Sledge Avatar answered Jul 12 '26 14:07

Andrew Sledge



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!