Active
Project:
Read More Link (Drupal 6 and earlier)
Version:
6.x-5.0-rc7
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
7 Apr 2010 at 14:38 UTC
Updated:
17 Aug 2011 at 02:22 UTC
I don't use the built-in body field for my nodes, but instead use a CCK textarea (you can do so much more with it). Can you add support to show "read more" links with CCK fields? One way I could imagine it working is a global setting which shows all available CCK textarea fields, and you could select that field. Or, you could also choose a CCK field per content type.
What do you think?
Comments
Comment #1
geerlingguy commentedSubscribe. And +1 (for archstl.org - right now we're using a custom formatter to do this).
Comment #2
mrfelton commented+1. We use a custom CCK field for the teaser.
Comment #3
geerlingguy commentedJust FYI, for now, on archstl.org, we're using a custom CCK formatter to accomplish the read more link. Here's the code (using the custom formatters module):
Comment #4
danny_joris commented+1 I don't use the core body field either
Comment #5
danny_joris commented@geerlingguy
I tried your snippet, but I changed it into this:
I don't think I use break lines. I just have a separate field for teasers. I removed the last
</p>by cutting of the last 5 letters, put the link in it and closed it of manually again. It works, but I feel that it is rather tweaky. Is there a better way to fix this?Cheers,
Danny
Comment #6
todd nienkerk commentedWhen dealing with CCK fields, a custom formatter is the best solution because there are too many site-specific use cases to supply general CCK support. Both custom formatters and theme-layer solutions (like appending a link in a template file or in a template_preprocess function) would handles these use cases.
Regarding the custom formatter, we have two options: (1) document the custom formatter or (2) supply a custom formatter in the Read More module. I'll have to play around with the code to see if option (2) is viable.
Comment #7
brisath commentedOption 2 would be fantastic in #6