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...

Comments

baldwinlouie’s picture

Status: Active » Needs review
StatusFileSize
new634 bytes

I'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.

baldwinlouie’s picture

StatusFileSize
new750 bytes

I 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.

sun’s picture

Status: Needs review » Needs work
Gurpartap Singh’s picture

The suggested changes break: http://drupal.org/node/133961

Anonymous’s picture

Any news on this? I have the same problem and would be happy to try a patch - but not if it breaks the search.

Gurpartap Singh’s picture

Version: 5.x-1.x-dev » 6.x-1.x-dev
Status: Needs work » Closed (duplicate)
dicreat’s picture

Please fix this problem on 5.x. Thanks.