Read more link appears before content due to incorrect weight setting (when positioning link with "after" content setting).

Created on 24 June 2011, over 13 years ago
Updated 11 November 2023, about 1 year ago

I was experiencing problems with the read more link sitting on top of my body content field in the teaser, probably because there were other fields enabled in the teaser besides the content itself. In the read_more.module I changed the following line:
$node->content['read_more'] = read_more_link($node, $display, $anchor) + array('#weight' => 1);
to
$node->content['read_more'] = read_more_link($node, $display, $anchor) + array('#weight' => 100);
and everything seems to work fine again.

Can you reflect these changes in the next update if this change makes any sense? ;-)

🐛 Bug report
Status

Closed: outdated

Version

1.0

Component

Code

Created by

🇧🇪Belgium xgmorkx

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024