Site visitors seeing your ugly error messages on the screen (along with details of your Drupal installation path)? Once your site goes from dev to launch, you probably want to have errors recorded in the log but not splashed across the screen. Head to the handy Error Reporting settings found at admin/settings/error-reporting.
Read More link troubles fixed?
Finally... my Read More link woes fixed? In Tweaking the Read More Tweak, I noted that I used the Read More Tweak module to make Drupal's strangely-invisible Read More links more prominent. But that module opened up another problem: the Read More link was appearing even when there was no more content, i.e., when the teaser showed the whole of the node.
The issues queue for the module discusses the matter, ending with confirmation that the latest version fixes things. Yet I kept getting that link after every teaser, whether for new posts or edits of old posts. Recent testing revealed something else: Somewhere along the line of upgrades and experiments, that module had stopped being at fault; I was now getting that persistent link in every teaser even with Read More Tweak disabled.
Things are fixed now. It's all so simple as to be embarrassing:
I was using trimmed posts (i.e., automated teaser cut-offs), set at Administer » Content management » Post settings. When I wanted to instead cut off the teaser at a different point, I used the Page Break button in Tiny TinyMCE, per its instructions ("Use the Page Break button* to insert a Drupal teaser break"). That page break setting takes precedence over the automated trimmed post setting.
I did the same thing when I wanted the whole node to appear as the teaser: I applied the page break to the end of the node's content. I'm pretty sure I somewhere read that this is the canonical method to set the whole node as the teaser when trimmed posts are being used.
But maybe I misread, as this seems to be what was causing my problem. Placing that page break at the end of the node ensures the appearance of the Read More link, even though that's precisely when we don't want it to appear.
Here's the recipe that's working:
- Set length of trimmed posts to Unlimited. (That sets no teaser trimming by default.)
- For posts that should have trimmed teasers, set a page break as above.
- For posts whose teaser should be the whole node, do nothing special. Don't touch the Page Break button.
That's it. New posts now behave, as do old posts when re-edited. And as should be, this is all separate from the Read More Tweak module; the behavior is now correct with or without that module's action of making the link more prominent. I think the above is the recipe I'll use for all sites now.
Done! A very beginner-level mistake and fix – but hey, that's what this blog is for.
* Side note: "Page Break button" is a poor name for a button that inserts a teaser break. Actual page breaks are the province of pagination features.
Relevant Content
The Drupal Ace logo has dealt these content suggestions from the deck.
Learn Drupal, hands-on
Get the beginner-friendly ebook that teaches community site building via a live case study.







Thanks
Thanks from me too - followed your instructions and my problem disappeared. Not sure how I got it in the first place, but it ain't there no more.
Teaser troubles
Glad to hear the troubles are gone. I had teaser troubles for the longest time, though now I have a hard time recalling exactly what the problems were... But mainly, the "fix" that's worked for me has been to just give up trying to have unique teasers that differ from the main body text. If I wanted to do that, I'm still not sure what the best solution is. Probably something using a CCK field for teasers, and using Views to create lists of teasers.
Thanks! I had created the
Thanks! I had created the exact same problem.
Teasers and Read More
Glad it helped. FYI, I've confirmed now on several sites that my Read More hassles are solved.
I don't know why such a simple problem plagued me for so long... except that throughout it all, I went through different versions of editor modules, different versions of Read More Tweak module (now re-named Read More Link?), alternate modules like Node Excerpt, and of course, different versions of Drupal. So, while I never log these problems in enough detail that I can look back and be certain, I think the failure of this issue to work correctly on my sites hasn't always been a matter of dumb user error. : )
the "read more" are every-where
Hi,
I recently noticed that all my posts had "read more" at the end of them, even though there was nothing more to read. I tried going into the admin section and changing the cut off to "unlimited" but the problem persists. I have no teaser breaks in my code in the actual entry, my entry-length-before-cut-off is set to "unlimited", but there's still read mores after evey post...
Odd teaser behavior
That is odd, as it seems you've checked all the bases for probable culprits... Are you sure that there isn't some third-party teaser- or excerpt-related module still active?
Another possibility: The "read more" links are a remnant of some past configuration or module use; even though the site should no longer be creating the links, they won't disappear until the affected nodes are re-edited and saved. If you edit one of the nodes with the mysterious "read me", and save the node (even if you make no changes to anything in the node), does that node still display "read more" in lists?
read more problems...
Yep, tried saving an entry without changing anything (except making sure that the node-length-before-teaser was set to "unlimited"), but the "read more" is still there. For now I installed the "read more link" module to disable *all* the "read mores", including the ones that really do have a teaser, which is suboptimal, obviously. I suspect it might have something to do with the "gallery assist" module that I installed, because it has an auto-teaser function --so as to show, in the frontpage, only 3 pics out of the many in the gallery--that might somehow have gotten applied to every node... Just a guess, though.
read mores and Gallery Assist
Yep, like I thought. Uninstalling Gallery Assist made my "read mores" dissappear. Pity. That's the only Drupal gallery module I managed to get to work more or less properly...
Read more and Gallery Assist
Thanks for reporting on the trouble-shooting; that may help someone else with the same problem.
"Read mores" remain tricky for me in Drupal – not vastly broken in any way at present, but often tossing up an oddity here and there. For now, I'm just keeping teasers simple and not expecting perfection!
Post new comment