Skip to content
Snippets Groups Projects
Commit eb79e133 authored by Melissa Miller's avatar Melissa Miller
Browse files

daily build 1

Edit and Add View Modes for Basic Page, Web Form, and News content
type.
parent 61cfe6d6
No related branches found
No related tags found
No related merge requests found
Showing
with 209 additions and 14 deletions
......@@ -25,6 +25,32 @@ function ocio_basic_page_ds_field_settings_info() {
);
$export['node|basic_page|full'] = $ds_fieldsetting;
$ds_fieldsetting = new stdClass();
$ds_fieldsetting->api_version = 1;
$ds_fieldsetting->id = 'node|basic_page|search_index';
$ds_fieldsetting->entity_type = 'node';
$ds_fieldsetting->bundle = 'basic_page';
$ds_fieldsetting->view_mode = 'search_index';
$ds_fieldsetting->settings = array(
'title' => array(
'weight' => '0',
'label' => 'hidden',
'format' => 'default',
'formatter_settings' => array(
'link' => '0',
'wrapper' => 'h3',
'class' => '',
'ft' => array(),
),
),
'field_ocio_body' => array(
'formatter_settings' => array(
'ft' => array(),
),
),
);
$export['node|basic_page|search_index'] = $ds_fieldsetting;
$ds_fieldsetting = new stdClass();
$ds_fieldsetting->api_version = 1;
$ds_fieldsetting->id = 'node|basic_page|teaser';
......@@ -84,6 +110,37 @@ function ocio_basic_page_ds_layout_settings_info() {
);
$export['node|basic_page|full'] = $ds_layout;
$ds_layout = new stdClass();
$ds_layout->api_version = 1;
$ds_layout->id = 'node|basic_page|search_index';
$ds_layout->entity_type = 'node';
$ds_layout->bundle = 'basic_page';
$ds_layout->view_mode = 'search_index';
$ds_layout->layout = 'ds_1col';
$ds_layout->settings = array(
'regions' => array(
'ds_content' => array(
0 => 'title',
1 => 'field_ocio_body',
),
),
'fields' => array(
'title' => 'ds_content',
'field_ocio_body' => 'ds_content',
),
'classes' => array(),
'wrappers' => array(
'ds_content' => 'div',
'ds_hidden' => 'div',
),
'layout_wrapper' => 'div',
'layout_attributes' => '',
'layout_attributes_merge' => 1,
'layout_link_attribute' => '',
'layout_link_custom' => '',
);
$export['node|basic_page|search_index'] = $ds_layout;
$ds_layout = new stdClass();
$ds_layout->api_version = 1;
$ds_layout->id = 'node|basic_page|teaser';
......
......@@ -18,7 +18,7 @@ function ocio_basic_page_field_default_field_instances() {
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'label' => 'hidden',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
......@@ -37,6 +37,15 @@ function ocio_basic_page_field_default_field_instances() {
'type' => 'text_default',
'weight' => 1,
),
'search_index' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(
'trim_length' => 300,
),
'type' => 'text_trimmed',
'weight' => 1,
),
'teaser' => array(
'label' => 'hidden',
'module' => 'text',
......
......@@ -14,8 +14,10 @@ dependencies[] = text
features[ctools][] = ds:ds:1
features[ctools][] = strongarm:strongarm:1
features[ds_field_settings][] = node|basic_page|full
features[ds_field_settings][] = node|basic_page|search_index
features[ds_field_settings][] = node|basic_page|teaser
features[ds_layout_settings][] = node|basic_page|full
features[ds_layout_settings][] = node|basic_page|search_index
features[ds_layout_settings][] = node|basic_page|teaser
features[features_api][] = api:2
features[field_instance][] = node-basic_page-field_ocio_body
......@@ -28,4 +30,3 @@ features[variable][] = node_options_basic_page
features[variable][] = node_preview_basic_page
features[variable][] = node_submitted_basic_page
features[variable][] = workbench_moderation_default_state_basic_page
mtime = 1422132544
......@@ -33,7 +33,7 @@ function ocio_basic_page_strongarm() {
'custom_settings' => FALSE,
),
'search_index' => array(
'custom_settings' => FALSE,
'custom_settings' => TRUE,
),
'search_result' => array(
'custom_settings' => FALSE,
......@@ -47,6 +47,9 @@ function ocio_basic_page_strongarm() {
'revision' => array(
'custom_settings' => FALSE,
),
'print' => array(
'custom_settings' => FALSE,
),
),
'extra_fields' => array(
'form' => array(),
......
......@@ -44,6 +44,27 @@ function ocio_news_ds_field_settings_info() {
);
$export['node|article|full'] = $ds_fieldsetting;
$ds_fieldsetting = new stdClass();
$ds_fieldsetting->api_version = 1;
$ds_fieldsetting->id = 'node|article|search_index';
$ds_fieldsetting->entity_type = 'node';
$ds_fieldsetting->bundle = 'article';
$ds_fieldsetting->view_mode = 'search_index';
$ds_fieldsetting->settings = array(
'title' => array(
'weight' => '0',
'label' => 'hidden',
'format' => 'default',
'formatter_settings' => array(
'link' => '0',
'wrapper' => 'h3',
'class' => '',
'ft' => array(),
),
),
);
$export['node|article|search_index'] = $ds_fieldsetting;
$ds_fieldsetting = new stdClass();
$ds_fieldsetting->api_version = 1;
$ds_fieldsetting->id = 'node|article|teaser';
......@@ -150,6 +171,37 @@ function ocio_news_ds_layout_settings_info() {
);
$export['node|article|full'] = $ds_layout;
$ds_layout = new stdClass();
$ds_layout->api_version = 1;
$ds_layout->id = 'node|article|search_index';
$ds_layout->entity_type = 'node';
$ds_layout->bundle = 'article';
$ds_layout->view_mode = 'search_index';
$ds_layout->layout = 'ds_1col';
$ds_layout->settings = array(
'regions' => array(
'ds_content' => array(
0 => 'title',
1 => 'field_ocio_body',
),
),
'fields' => array(
'title' => 'ds_content',
'field_ocio_body' => 'ds_content',
),
'classes' => array(),
'wrappers' => array(
'ds_content' => 'div',
'ds_hidden' => 'div',
),
'layout_wrapper' => 'div',
'layout_attributes' => '',
'layout_attributes_merge' => 1,
'layout_link_attribute' => '',
'layout_link_custom' => '',
);
$export['node|article|search_index'] = $ds_layout;
$ds_layout = new stdClass();
$ds_layout->api_version = 1;
$ds_layout->id = 'node|article|teaser';
......
......@@ -17,14 +17,13 @@ function ocio_news_field_default_field_instances() {
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'image',
'label' => 'hidden',
'module' => 'file_entity',
'settings' => array(
'image_link' => '',
'image_style' => '',
'file_view_mode' => 'default',
),
'type' => 'image',
'weight' => 4,
'type' => 'file_rendered',
'weight' => 2,
),
'full' => array(
'label' => 'hidden',
......@@ -40,7 +39,7 @@ function ocio_news_field_default_field_instances() {
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 2,
'weight' => 10,
),
'search_result' => array(
'label' => 'above',
......@@ -127,11 +126,11 @@ function ocio_news_field_default_field_instances() {
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'label' => 'hidden',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 2,
'weight' => 0,
),
'featured' => array(
'label' => 'above',
......@@ -151,7 +150,7 @@ function ocio_news_field_default_field_instances() {
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 0,
'weight' => 1,
),
'search_result' => array(
'label' => 'above',
......
......@@ -10,6 +10,7 @@ dependencies[] = custom_breadcrumbs
dependencies[] = custom_breadcrumbs_features
dependencies[] = ds
dependencies[] = features
dependencies[] = file_entity
dependencies[] = image
dependencies[] = media
dependencies[] = ocio_field_bases
......@@ -28,9 +29,11 @@ features[ctools][] = strongarm:strongarm:1
features[ctools][] = views:views_default:3.0
features[custom_breadcrumb][] = news
features[ds_field_settings][] = node|article|full
features[ds_field_settings][] = node|article|search_index
features[ds_field_settings][] = node|article|teaser
features[ds_fields][] = byline
features[ds_layout_settings][] = node|article|full
features[ds_layout_settings][] = node|article|search_index
features[ds_layout_settings][] = node|article|teaser
features[features_api][] = api:2
features[field_instance][] = node-article-field_featured_image
......
......@@ -33,7 +33,7 @@ function ocio_news_strongarm() {
'custom_settings' => FALSE,
),
'search_index' => array(
'custom_settings' => FALSE,
'custom_settings' => TRUE,
),
'search_result' => array(
'custom_settings' => FALSE,
......@@ -47,6 +47,9 @@ function ocio_news_strongarm() {
'revision' => array(
'custom_settings' => FALSE,
),
'print' => array(
'custom_settings' => FALSE,
),
),
'extra_fields' => array(
'form' => array(),
......
......@@ -4,6 +4,36 @@
* ocio_web_form.ds.inc
*/
/**
* Implements hook_ds_field_settings_info().
*/
function ocio_web_form_ds_field_settings_info() {
$export = array();
$ds_fieldsetting = new stdClass();
$ds_fieldsetting->api_version = 1;
$ds_fieldsetting->id = 'node|web_form|search_index';
$ds_fieldsetting->entity_type = 'node';
$ds_fieldsetting->bundle = 'web_form';
$ds_fieldsetting->view_mode = 'search_index';
$ds_fieldsetting->settings = array(
'title' => array(
'weight' => '0',
'label' => 'hidden',
'format' => 'default',
'formatter_settings' => array(
'link' => '0',
'wrapper' => 'h3',
'class' => '',
'ft' => array(),
),
),
);
$export['node|web_form|search_index'] = $ds_fieldsetting;
return $export;
}
/**
* Implements hook_ds_layout_settings_info().
*/
......@@ -41,5 +71,36 @@ function ocio_web_form_ds_layout_settings_info() {
);
$export['node|web_form|full'] = $ds_layout;
$ds_layout = new stdClass();
$ds_layout->api_version = 1;
$ds_layout->id = 'node|web_form|search_index';
$ds_layout->entity_type = 'node';
$ds_layout->bundle = 'web_form';
$ds_layout->view_mode = 'search_index';
$ds_layout->layout = 'ds_1col';
$ds_layout->settings = array(
'regions' => array(
'ds_content' => array(
0 => 'title',
1 => 'field_ocio_body',
),
),
'fields' => array(
'title' => 'ds_content',
'field_ocio_body' => 'ds_content',
),
'classes' => array(),
'wrappers' => array(
'ds_content' => 'div',
'ds_hidden' => 'div',
),
'layout_wrapper' => 'div',
'layout_attributes' => '',
'layout_attributes_merge' => 1,
'layout_link_attribute' => '',
'layout_link_custom' => '',
);
$export['node|web_form|search_index'] = $ds_layout;
return $export;
}
......@@ -31,6 +31,13 @@ function ocio_web_form_field_default_field_instances() {
'type' => 'text_default',
'weight' => 0,
),
'search_index' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 1,
),
),
'ds_extras_field_template' => '',
'entity_type' => 'node',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment