Skip to content

Commit

Permalink
BASIC-826 | images link to content in news views
Browse files Browse the repository at this point in the history
  • Loading branch information
cynmij committed Sep 16, 2014
1 parent 96a056a commit 75ca5d4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modules/stanford_news_views/stanford_news_views.info
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name = Stanford News Views
description = Views for the stanford_news module and content type.
core = 7.x
package = Stanford
version = 7.x-1.0-alpha3
version = 7.x-1.0-alpha5
project = stanford_news_views
dependencies[] = ctools
dependencies[] = date
Expand Down
17 changes: 17 additions & 0 deletions modules/stanford_news_views/stanford_news_views.views_default.inc
Original file line number Diff line number Diff line change
Expand Up @@ -487,12 +487,19 @@ function stanford_news_views_views_default_views() {
$handler->display->display_options['empty']['area']['empty'] = TRUE;
$handler->display->display_options['empty']['area']['content'] = 'No news items listed.';
$handler->display->display_options['empty']['area']['format'] = 'content_editor_text_format';
/* Field: Content: Nid */
$handler->display->display_options['fields']['nid']['id'] = 'nid';
$handler->display->display_options['fields']['nid']['table'] = 'node';
$handler->display->display_options['fields']['nid']['field'] = 'nid';
$handler->display->display_options['fields']['nid']['exclude'] = TRUE;
/* Field: Field: Image */
$handler->display->display_options['fields']['field_s_image_info']['id'] = 'field_s_image_info';
$handler->display->display_options['fields']['field_s_image_info']['table'] = 'field_data_field_s_image_info';
$handler->display->display_options['fields']['field_s_image_info']['field'] = 'field_s_image_info';
$handler->display->display_options['fields']['field_s_image_info']['label'] = '';
$handler->display->display_options['fields']['field_s_image_info']['exclude'] = TRUE;
$handler->display->display_options['fields']['field_s_image_info']['alter']['make_link'] = TRUE;
$handler->display->display_options['fields']['field_s_image_info']['alter']['path'] = 'node/[nid]';
$handler->display->display_options['fields']['field_s_image_info']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_s_image_info']['settings'] = array(
'edit' => '',
Expand Down Expand Up @@ -833,6 +840,11 @@ function stanford_news_views_views_default_views() {
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['pager']['options']['id'] = '0';
$handler->display->display_options['defaults']['fields'] = FALSE;
/* Field: Content: Nid */
$handler->display->display_options['fields']['nid']['id'] = 'nid';
$handler->display->display_options['fields']['nid']['table'] = 'node';
$handler->display->display_options['fields']['nid']['field'] = 'nid';
$handler->display->display_options['fields']['nid']['exclude'] = TRUE;
/* Field: Field: Image */
$handler->display->display_options['fields']['field_s_image_info']['id'] = 'field_s_image_info';
$handler->display->display_options['fields']['field_s_image_info']['table'] = 'field_data_field_s_image_info';
Expand Down Expand Up @@ -1065,6 +1077,11 @@ function stanford_news_views_views_default_views() {
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['defaults']['empty'] = FALSE;
$handler->display->display_options['defaults']['fields'] = FALSE;
/* Field: Content: Nid */
$handler->display->display_options['fields']['nid']['id'] = 'nid';
$handler->display->display_options['fields']['nid']['table'] = 'node';
$handler->display->display_options['fields']['nid']['field'] = 'nid';
$handler->display->display_options['fields']['nid']['exclude'] = TRUE;
/* Field: Field: Image */
$handler->display->display_options['fields']['field_s_image_info']['id'] = 'field_s_image_info';
$handler->display->display_options['fields']['field_s_image_info']['table'] = 'field_data_field_s_image_info';
Expand Down

0 comments on commit 75ca5d4

Please sign in to comment.