Is there anyway to limit the amount of characters returned for the $Content?
I like how the News displays on the article holder page, but for sidebar (latest news) on the homepage, I dont want to display so much. Maybe 120 characters max.
Is this possible?
Page.php:
function LatestNewsItems($num = 3)
{
$news = DataObject::get_one("ArticleHolder");
return ($news) ? DataObject::get("ArticlePage", "ParentID = $news->ID", "Date DESC", "", $num) : false;
}
LatestNews.ss
<% control LatestNewsItems %>
<p>$Content</p>
<% if FirstLast != last %><div class="hr"> </div><% end_if %>
<% end_control %>