Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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.
Comment | File | Size | Author |
---|---|---|---|
#1 | show-links-option-1507348-1.patch | 1.54 KB | wbobeirne |
Comments
Comment #1
wbobeirne CreditAttribution: wbobeirne commented