Closed (works as designed)
Project:
Display Suite
Version:
7.x-1.5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Apr 2012 at 14:18 UTC
Updated:
3 Dec 2012 at 10:42 UTC
Jump to comment: Most recent file
Comments
Comment #1
swentel commentedIt's core's fault that they aren't rendered:
But it's rather easy to remove them from other view modes. I'll post a patch this weekend.
Comment #2
swentel commentedpatch attached, committed and pushed.
Comment #4
rpmskret commentedHi. I was very glad to see this post. Very same issue for me. I have applied the patch by swentel and that did not make any noticeable change. But thank you swentel for the pointer to comment_node_view() . I made a hard code fix. Bad way to go but it's quick and effective to be forward about it. Not a very good or long term solution for sure.
It is very good of you swentel to reply as you did, incredibly 5 minutes after the original post!
If you find time and a way you will get a proper fix for ds for this issue. Otherwise, we at least can apply an emergency fix by personal choice.
Comment #5
swentel commentedThere's nothing further I can do.
Comment #6
andrewbelcher commentedI needed a solution to this one... So I came up with one that met our needs, should meet the needs of @romanse and could be extended to a more generic solution that could be included in DS (though probably more likely DS Extras).
I used a hook_node_view() to attach comments in the situations where comments_node_view() wasn't but I needed them. For my situation I just hardcoded in a custom module the display modes I wanted to attach comments to, but probably a more viable solution which doesn't unnecessarily load comments for view modes that don't need it would be to have a settings page for it that lets you choose which view modes to load comments for.
When I get the time I'll put it together into a module sandbox and then it can either be used independently or brought into Extras....
Comment #7
rpmskret commented@ andrewbelcher, I am not yet up on making modules. Soon I think I will make time.
But I am glad to see your post and your fix, being a better alternative to editing core code.
I'll have a look if/when you do get your module posted.
Comment #8
rpmskret commentedI wish to add another core code edit alternative. If you take it upon yourself to edit the core to fix this issue, I have found a very simple edit which is working thus far. I tried a few tests and this works 100% so far.
As you can see I have simply removed the requirement for the node
$view_modeto be of any particular type.Comment #9
rodrigoaguileraI'm experiencing this on DS 2, the comments field it's only available on the full content view mode ¿is this the normal behaviour?¿Should I add a extra field for comments?
Comment #10
swentel commentedYes, it's the normal behavior embedded in core.