Needs review
Project:
Featured Content
Version:
7.x-1.5
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
3 Nov 2016 at 17:18 UTC
Updated:
4 Nov 2016 at 16:03 UTC
Jump to comment: Most recent, Most recent file


Comments
Comment #2
cytherion commentedComment #3
cytherion commentedThe issue seems to result from the call to drupal_render on line 2256 of featured_content.module which replaces the node->body structure with the rendered content.
thus the structure of $node->body (below)

has been replaced with a string containing the HTML of the rendered node.
Commenting out "$node->body = drupal_render($node->content);" allows the summary to show in the teaser.
Comment #4
cytherion commentedComment #5
cytherion commentedComment #6
cytherion commentedThis patch incorporates the change I noted earlier in this issue. Namely, I commented-out
$node->body = drupal_render($node->content)that appears on line 2253. This solution works for my particular use case which includes using the module to create "Related Content" blocks containing teasers, linked titles or full content. However, more extensive testing is needed to determine if removing this line of code breaks other parts of the module or creates problems for other use cases..Comment #7
cytherion commentedSorry, trying again as previous patch file was empty - I'm a newb to patching with GIT.
Comment #8
cytherion commented