Skip to content

Commit

Permalink
Merge pull request SU-SWS#8 from SU-SWS/7.x-3.x-BASIC-826
Browse files Browse the repository at this point in the history
BASIC-826 | images link to content in news views
  • Loading branch information
sherakama committed Sep 17, 2014
2 parents 96a056a + 75ca5d4 commit 2ddf4e3
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 2ddf4e3

Please sign in to comment.