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.
EXcerpt is a nice module. However it seems that it does not work with Flexinode content type.
Comment | File | Size | Author |
---|---|---|---|
#6 | flexinode_content_function.txt | 1.36 KB | donnoit |
Comments
Comment #1
jo1ene CreditAttribution: jo1ene commentedI'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?
Comment #2
ezheidtmann CreditAttribution: ezheidtmann commentedI'm not terribly familiar with flexinode, but my guess is that it generates its own teaser, overriding the one provided by excerpt.
Comment #3
mikeryanYes, 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.
Comment #4
donnoit CreditAttribution: donnoit commentedFor 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
There will be three such statements. For the second one, you should put the check around the whole
if ($field->show_teaser ) block.
Comment #5
Andrzej7 CreditAttribution: Andrzej7 commentedHi 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
Comment #6
donnoit CreditAttribution: donnoit commentedI 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.
Comment #7
webwright CreditAttribution: webwright commentedHrm-- 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
Comment #8
pamphile CreditAttribution: pamphile commentedAny luck with this issue?
Comment #9
hayesr CreditAttribution: hayesr commentedThis is very old and no longer seems to be needed.