We ran in to an issue when rendering one of our nodes in teaser form, that it included "Read More" or "Comments" links at the bottom that we didn't want to have shown in some cases. Rather than make an entirely different display, I added a checkbox to the rendered node formatter that will strip out the links that are in $node['links'] in hook_field_formatter_view(). I'm not sure if other people want/need this option, but I figured I'd post it just in case. Patch is in the next comment.

CommentFileSizeAuthor
#1 show-links-option-1507348-1.patch1.54 KBwbobeirne
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

wbobeirne’s picture

Status: Active » Needs review
FileSize
1.54 KB