Closed (duplicate)
Project:
Read More Link (Drupal 6 and earlier)
Version:
6.x-5.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
19 Aug 2008 at 02:38 UTC
Updated:
19 Nov 2009 at 21:55 UTC
Jump to comment: Most recent file
Comments
Comment #1
rimu commentedOh I should add that changing the
$marker_to_insert_at = "</p>";line to$marker_to_insert_at = "</div>";didn't help. I get the impression that CCK might be adding it's fields in AFTER this module is.Comment #2
mcurry commentedI realize that this may seem strange, but I consider CCK compatibility (or indeed, compatibility with any non-core module) to be a feature request, not a bug. (Last time I checked, CCK was not part of core... or have I missed something?)
If someone can submit a patch that will allow reliable CCK compatibilty, by all means, please submit the patch. I doubt I'll have time to work on this anytime soon.
Comment #3
mcurry commentedYou could try adjusting the modules' relative weights in the system table - make ed_readmore 'heaviery' than CCK and the CCK field modules... (this all seems so familiar -- I think that there have been issues filed against ed_readmore in the past, and the system table weights may be a way to fix this.)
Comment #4
mcurry commentedSee issue #266432: Patch to fix conflict with excerpt.module (and possibly others)
Also:
http://drupal.org/project/moduleweight
http://drupal.org/node/110238
Comment #5
mimhakkuh commentedI'd also think that CCK Compatibility would be a most important feature. Using cck text fields for all my drupal site's teasers ...
Is this feature actually beeing considered for future versions of Read More Tweak?
Comment #6
todd nienkerk commentedFor reference, the following issues are duplicates of this one:
Comment #7
todd nienkerk commentedThe solutions outlined in the following bugs have fixed this problem:
I will commit the code shortly.
Comment #8
todd nienkerk commentedComment #10
kdebaas commentedI am re-opening this issue as I believe that the expected behaviour could be open to discussion. I also have a teaser listing of events, where the event content type consists of a tilte, a body text and cck fields for venue and dates. However, I do expect to have the Read more link displayed inline with the teaser field, before the actual cck fields, when I select the inline option, even if I have chosen to display those cck fields in my teaser displays.
Comment #11
todd nienkerk commentedkdebaas: Can you verify that the behavior you describe in #10 does not occur as desired in the 6.x-5.0-RC1 release? The 5.0-RC1 release is a bit newer than 3.x-dev, which is itself completely different than 3.0.
Comment #12
kdebaas commentedYes, the described behaviour occurs in the 6.x-5.0-RC1 release, which I started using since I liked very much the move from hook_nodeapi to template_preprocess_node.
I saw in your code that
ed_readmore_link_place()works on the teaser as provided by$variables['content']as in$variables['content'] = ed_readmore_link_place($variables['content'], $variables['node'], $display);which obviously already contains the CCK fields that were set to display in the teaser.I had thought that the CCK fields could be circumvented by working instead on
$variables['node']->teaserbut I didn't manage to get that to work yet. What do you think?Comment #13
kdebaas commentedAttached patch inserts the read more link inline with the teaser field, above cck fields that are set to display below the teaser.
Choosing the option 'after' for placement of the read more link places it at the end of the teaser, below the cck fields.
Comment #14
todd nienkerk commentedkdebaas: I've been trying to replicate this behavior, but so far, the Read More link reliably appears before any CCK fields added to the teaser. (I'm using CCK 6.x-2.5.) It seems the behavior you want is already built into the module. Just for kicks, I compared your
$insert_pointvalue with$match[0][1]and found they were the same each time.Would you mind checking the latest 6.x-5.x-dev snapshot and let me know exactly how I can replicate an instance in which the Read More link appears after any CCK fields?
Comment #15
todd nienkerk commentedI'm pretty sure this has been fixed here:#629990: Read More link not inserted properly when CCK fields are displayed before node body. Marking as a duplicate.