0

There are a number of questions relating to this issue. I'm interested in a general explanation so I can troubleshoot why my complex (contextual filters, relationships, etc) view preview would be working as expected while the view block shows different results.

What exactly is being run for the preview compared to the normal display of the view? What happens 'after' the preview, or are these different paths/processes/methods/hooks altogether?

1
  • 1
    The them layer is the most likely culprit: in the preview you are probably running under an administration theme: your site theme could be doing any number of things that would alter output. Have you tried switching site theme to Bartik, to see if that makes a difference? Commented Nov 30, 2015 at 13:23

2 Answers 2

1

If aggregation is enabled and query settings distinct and/or pure distinct as well with flags relationships, I experienced differences in what the preview was showing and what showed in the actual block/page version. The solution for me was disabling the distinct option.

0

Your issue is likely related to the contextual filter. If the data you are supplying to the preview doesn't match the data provided from the url, etc. then the results will differ.

1
  • Isn't that what the 'Preview with contextual filters' box is for? Commented Nov 11, 2015 at 0:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.