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

jo1ene - July 20, 2005 - 23:42

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

clydefrog - July 21, 2005 - 02:40

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

#3

mikeryan - July 30, 2005 - 15:16

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

donnoit - September 4, 2005 - 18:19

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

Andrzej7 - September 4, 2005 - 19:17

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

donnoit - September 4, 2005 - 21:16

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.

AttachmentSize
flexinode_content_function.txt1.36 KB

#7

webwright - September 19, 2005 - 01:52

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

mpamphile - October 31, 2005 - 20:17

Any luck with this issue?

#9

hayesr - January 1, 2008 - 23:33
Status:active» won't fix

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

 
 

Drupal is a registered trademark of Dries Buytaert.