diff --git a/cambridge_news.features.field_instance.inc b/cambridge_news.features.field_instance.inc index b62d410..dbf081e 100644 --- a/cambridge_news.features.field_instance.inc +++ b/cambridge_news.features.field_instance.inc @@ -38,38 +38,70 @@ function cambridge_news_field_default_field_instances() { ), 'news_listing_item' => array( 'label' => 'hidden', - 'module' => 'text', + 'module' => 'smart_trim', 'settings' => array( - 'trim_length' => 600, + 'more_link' => 0, + 'more_text' => 'Read more', + 'summary_handler' => 'full', + 'trim_length' => 325, + 'trim_options' => array( + 'text' => 'text', + ), + 'trim_suffix' => '...', + 'trim_type' => 'chars', ), - 'type' => 'text_summary_or_trimmed', + 'type' => 'smart_trim_format', 'weight' => 0, ), 'sidebar_teaser' => array( 'label' => 'hidden', - 'module' => 'text', + 'module' => 'smart_trim', 'settings' => array( - 'trim_length' => 600, + 'more_link' => 0, + 'more_text' => 'Read more', + 'summary_handler' => 'full', + 'trim_length' => 325, + 'trim_options' => array( + 'text' => 'text', + ), + 'trim_suffix' => '...', + 'trim_type' => 'chars', ), - 'type' => 'text_summary_or_trimmed', + 'type' => 'smart_trim_format', 'weight' => 1, ), 'teaser' => array( 'label' => 'hidden', - 'module' => 'text', + 'module' => 'smart_trim', 'settings' => array( - 'trim_length' => 600, + 'more_link' => 0, + 'more_text' => 'Read more', + 'summary_handler' => 'full', + 'trim_length' => 325, + 'trim_options' => array( + 'text' => 'text', + ), + 'trim_suffix' => '...', + 'trim_type' => 'chars', ), - 'type' => 'text_summary_or_trimmed', + 'type' => 'smart_trim_format', 'weight' => 1, ), 'vertical_teaser' => array( 'label' => 'hidden', - 'module' => 'text', + 'module' => 'smart_trim', 'settings' => array( - 'trim_length' => 600, + 'more_link' => 0, + 'more_text' => 'Read more', + 'summary_handler' => 'full', + 'trim_length' => 325, + 'trim_options' => array( + 'text' => 'text', + ), + 'trim_suffix' => '...', + 'trim_type' => 'chars', ), - 'type' => 'text_summary_or_trimmed', + 'type' => 'smart_trim_format', 'weight' => 1, ), ), diff --git a/cambridge_news.info b/cambridge_news.info index a570aa3..fd787d4 100644 --- a/cambridge_news.info +++ b/cambridge_news.info @@ -10,6 +10,7 @@ dependencies[] = cambridge_related_links dependencies[] = cambridge_teasers dependencies[] = fe_block dependencies[] = media +dependencies[] = smart_trim dependencies[] = text dependencies[] = views features[ctools][] = views:views_default:3.0