Excerpt does not seem to work with Flexinode content type
xbc - April 16, 2005 - 23:50
| Project: | Excerpt |
| Version: | 6.x-1.x-dev |
| Component: | Miscellaneous |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | won't fix |
Description
EXcerpt is a nice module. However it seems that it does not work with Flexinode content type.

#1
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?
#2
I'm not terribly familiar with flexinode, but my guess is that it generates its own teaser, overriding the one provided by excerpt.
#3
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.
#4
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.
#5
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
#6
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.
#7
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
#8
Any luck with this issue?
#9
This is very old and no longer seems to be needed.