Closed (won't fix)
Project:
Views (for Drupal 7)
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Mar 2006 at 16:34 UTC
Updated:
16 Mar 2006 at 12:46 UTC
Worst. Issue. Title. Ever.
Anyhoo, steps to recreate:
1. Grab/install Drupal 4.7 beta 5 and views CVS;
2. Create some nodes (I used stories);
3. Create a new view: block view, no page view, all roles may access, teaser list, filter on node published = yes, node front page = yes, sort criteria: created date descending (think this is the clincher);
4. Enable new view block;
5. Go to front page;
6. Click on a node title from the view to show that node;
7. Content for that node in the view block now shows as 'n/a'.
After a little play around, I think the sort criteria part of the view is causing the problem, but I'm not sure why.
Comments
Comment #1
merlinofchaos commentedAs near as I can tell, this is an artifact of Drupal's node caching and trying to display the same node on the same page in two different ways.
I'm not sure if it constitutes a bug in Drupal or node, but I suspect it does.
I'm not sure how to fix this in Views, either.
Comment #2
pfaocleWill be working on a, um, workaround tomorrow. Will post back.
Comment #3
pfaocleA cop out, I know. In my theme function for the block view:
Comment #4
merlinofchaos commentedIt'll have to do!
Comment #5
pfaocleJust another note on that piece of code - I have a view set as the front page, so I also have to check we're on the front page, otherwise the view nodes aren't displayed. Eg: