EXcerpt is a nice module. However it seems that it does not work with Flexinode content type.

CommentFileSizeAuthor
#6 flexinode_content_function.txt1.36 KBdonnoit
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jo1ene’s picture

I've noticed this also. I suppose that the flexinode mod itself allows you to define what info would be in the teaser, but it would be helpful if excerpt worked as well. Any ideas?

ezheidtmann’s picture

I'm not terribly familiar with flexinode, but my guess is that it generates its own teaser, overriding the one provided by excerpt.

mikeryan’s picture

Yes, flexinode unconditionally sets the teaser in its view hook, which overrides any explicit teaser. I've tried playing around with patching excerpt.module, but I don't see a solution from the excerpt.module side (other than renaming it xcerpt.module, so it gets the last crack in the hooks:-), I think it requires changing flexinode.module to respect explicit teasers.

donnoit’s picture

For a solution to this,

Find the function flexinode_content in the flexinode.module and put the following condition around every statement in the code that tries to assign to $node->teaser

if (!isset($node->teaser)) 
{
}

There will be three such statements. For the second one, you should put the check around the whole
if ($field->show_teaser ) block.

Andrzej7’s picture

Hi donnoit

I'm not a coder ;-)

Could you post a code? I mean - what part of today's code to replace with your code.

Andrzej

donnoit’s picture

I tried to post the code earlier but I kept getting an error.

I've tried to put it in the attchment.
You can cut out the current flexinode_content function in flexinode.module and paste this in.

webwright’s picture

Hrm-- I replaced this code-- made it so the flexinode didn't replace whatever I put in the excerpt with the full flexinode...

But on summary pages (home page, for example, when flexinode is promoted), it still displays the full flexinode for me...

-t

pamphile’s picture

Any luck with this issue?

hayesr’s picture

Status: Active » Closed (won't fix)

This is very old and no longer seems to be needed.