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.

CommentFileSizeAuthor
#4 781058_4.patch827 bytesblakehall
#2 781058.patch667 bytesblakehall
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

XiaN Vizjereij’s picture

Status: Active » Needs review
blakehall’s picture

FileSize
667 bytes

Note: 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.

alex_b’s picture

Version: 6.x-1.0-alpha14 » 6.x-1.x-dev
Priority: Critical » Normal
Status: Needs review » Needs work

#2 needs to go into setTargetElement() in the same class. Search for elseif ($target_element == 'body') {

Always patch against branch HEAD. I believe you did, changing the issue version.

blakehall’s picture

Status: Needs work » Needs review
FileSize
827 bytes

patch attached, setting node_teaser in setTargetElement instead.

alex_b’s picture

Title: Teaser is not created for imported nodes » Create teaser for imported nodes
Status: Needs review » Fixed

Committed. 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.