Skip to content

Commit

Permalink
Merge pull request #4 from thewilkybarkid/smart-trim
Browse files Browse the repository at this point in the history
Use Smart Trim in teasers
  • Loading branch information
thewilkybarkid committed May 13, 2014
2 parents faf511a + 8f5558a commit f5b2944
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 12 deletions.
56 changes: 44 additions & 12 deletions cambridge_news.features.field_instance.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
),
Expand Down
1 change: 1 addition & 0 deletions cambridge_news.info
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f5b2944

Please sign in to comment.