Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I noticed that the teaser is not created for imported nodes.
As a quick and dirty fix :
Line 70 | feeds/plugins/FeedsNodeProcessor.inc
// Execute mappings from $item to $node.
$this->map($item, $node);
to
// Execute mappings from $item to $node.
$this->map($item, $node);
$node->teaser = node_teaser($node->body);
Don't know if there are any other places where this has to be included, but the above change creates the teaser for me.
Comment | File | Size | Author |
---|---|---|---|
#4 | 781058_4.patch | 827 bytes | blakehall |
#2 | 781058.patch | 667 bytes | blakehall |
Comments
Comment #1
XiaN Vizjereij CreditAttribution: XiaN Vizjereij commentedComment #2
blakehall CreditAttribution: blakehall commentedNote: Issues should only be marked needs review if they have a patch attached.
I've created a quick patch for this issue. Seems relatively straightforward.
Comment #3
alex_b CreditAttribution: alex_b commented#2 needs to go into
setTargetElement()
in the same class. Search forelseif ($target_element == 'body') {
Always patch against branch HEAD. I believe you did, changing the issue version.
Comment #4
blakehall CreditAttribution: blakehall commentedpatch attached, setting node_teaser in setTargetElement instead.
Comment #5
alex_b CreditAttribution: alex_b commentedCommitted. Thank you.
http://drupal.org/cvs?commit=360482
NOTE: this change may mean that your existing installation has shorter node teasers as expected. If this is the case, increase "Length of trimmed posts" on admin/content/node-settings.