Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.3
Component:
block displays
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
3 Apr 2009 at 20:39 UTC
Updated:
18 Jul 2009 at 07:57 UTC
Jump to comment: Most recent
Comments
Comment #1
Anonymous (not verified) commentedNo. this isn't a bug. This works. What is 'code?' The second parameter should be the display ID, which is usually something like 'block' or 'block_1.' I suspect that 'code' isn't valid and it's throwing up the 'default' view because, well, it's the default.
Comment #2
datawench commentedArgh. I must have mistyped. This is the actual fragment:
Comment #3
datawench commentedAnswering my own question:
The "Name" of the block is NOT the display ID, which must be inferred from the Theme Information displays.
In this case, the proper invocation was:
Thanks again, bangpound, for the hint that made me see that.
Comment #4
Chris Einkauf commentedFor anyone that is wondering how to determine the correct display id, check out this thread: http://drupal.org/node/455336 (in particular, this comment: http://drupal.org/node/455336#comment-1731004). Took me hours to finally find out that the solution to my own Views problem was a simple incorrect view display id, so hopefully this helps out other people as well.