The problem is that paging is overwriting the $node->body variable on lines 136-137 (_paging_nodeapi function):
$node->body = check_markup($node->pages[$page], $node->format, false);
$node->body .= theme('pager', NULL, 1, $element);
I changed the lines to:
$node->content['body']['#value'] = check_markup($node->pages[$page], $node->format, false);
$node->content['body']['#value'] .= theme('pager', NULL, 1, $element);
and the attachments show. Don't know if this can cause other problems though...
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | paging.180845_1.patch | 750 bytes | baldwinlouie |
| #1 | paging.180845.patch | 634 bytes | baldwinlouie |
Comments
Comment #1
baldwinlouie commentedI've been running this change in production for a while now. It shouldn't cause any problems. I took your changes above and made a patch for it.
Comment #2
baldwinlouie commentedI made a slight tweak to the patch. Instead of concatenating the pager into the body, I put it in its own array element. This way, it will be easier to override.
Comment #3
sunPlease read http://drupal.org/patch/create
Comment #4
Gurpartap Singh commentedThe suggested changes break: http://drupal.org/node/133961
Comment #5
Anonymous (not verified) commentedAny news on this? I have the same problem and would be happy to try a patch - but not if it breaks the search.
Comment #6
Gurpartap Singh commentedFixed for 6.x branch in #363396: Paginate only for normal node rendering..
Comment #7
dicreat commentedPlease fix this problem on 5.x. Thanks.