Some sites publish their full feed... I'm wondering if there is a way that you can limit the number of characters displayed from the feed that is published on your site. This would allow you to avoid publishing their full feed (article) on your site...

Thanks in advance!

Comments

chrishaslam’s picture

Status: Active » Fixed

In node-aggregator-item.tpl.php change print $content to:

<?php print substr_replace("$content","",100); ?>

Which would snip the content to 100 characters

jlee’s picture

Thanks!!! I'll give it a shot!

budda’s picture

print truncate_utf8($content, 100, TRUE, TRUE)

might be a better choice to put in your theme's node-aggregator-item.tpl.php template.

Check the manual page for the command for info about the last two parameters.

Anonymous’s picture

Status: Fixed » Closed (fixed)