Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Could someone please give me some guidance on how to limit the characters displayed in each feed/post item? For my layout, it would be better to have each item only take up 2 or 3 lines instead of showing the entire contents which can be several lines long. Thanks in advance.
Comments
Comment #1
jsheffers CreditAttribution: jsheffers commentedYou can do this by editing the facebook_pull-feed.tpl.php and changing line 7 to use the
substr()
function.<?php echo substr($item->message,0,100); ?>
Change 100 to the character limit of your choice.
Comment #2
prophet108 CreditAttribution: prophet108 commentedAwesome. Thank you!