Closed (fixed)
Project:
Node displays
Version:
6.x-2.x-dev
Component:
Code
Priority:
Major
Category:
Support request
Assigned:
Reporter:
Created:
1 Feb 2012 at 18:05 UTC
Updated:
15 May 2012 at 00:05 UTC
Hi all
I probably made a wrong search, but the only issue I could find is this http://drupal.org/node/1316610
I updated to 6.x-2.x, with latest stable release of ds, updated the settings.php file.
I am still having issues when one single node is displayed on more than 1 view with DS on the same page (i.e., "teaser" buildmode for content area and "recent posts" buildmode for footer area)
During the second time , the buildmode is not updated and a node displayed in the content area with "teaser" buildmode is still displayed with the same buildmode in the footer area
Any fix?
Comments
Comment #1
xtfer commentedNo, no fix yet. I had identified this issue on a production site that I'm working on, but hadn't got around to debugging it yet, as I wasn't sure if it was a localised bug or not. Clearly it isn't, so I'll add it to the queue. Expect a fix at some point...
Comment #2
thoomyorke commentedThanks Xtfer,
just did quick debug.
The bug happens during caching version of DS fields and regions in function nd_build_fields_and_regions(&$node)
line 271 : if (isset($displays[$node->nid])) {
Comment #3
xtfer commentedCorrect! and also in Display Suite itself somewhere else. I should have patch for this today which fixes it and preserves caching.
Comment #4
nicholas.alipaz commentedJust thought I would post my effort in debugging:
The output rendered the exact same teaser node each time. Not really sure what is going on here.
Comment #5
xtfer commentedDisplay Suite & Node Displays are caching the Display by node ID, not by build mode. Hence, you get the same result every time. Patch coming...
Comment #6
nicholas.alipaz commentedI see, yes the following bypasses the issue although I am sure it has some caching ramifications:
I will wait for the fix. Thanks for looking at the issue.
Comment #7
xtfer commentedThe only issue is you lose static caching, which is really only a problem if you reload the node with the same display in two places.
Comment #8
xtfer commentedI've committed a fix to dev. If it passes tests tomorrow I'll do a release.
Comment #9
nicholas.alipaz commentedThanks, it seems to work for me. Good work and nice and simple solution you implemented.
Comment #10
xtfer commentedNo problem. Thank you.
Comment #12
ArielCamino commentedI updated drupal core to 6.26 and the problem came again :(
Comment #13
xtfer commented@ArielCamino
This issue is fixed and committed, so it is unlikely to be caused by the same issue. Please open a new ticket, with a full description of how to replicate the issue. Thanks.