added links to home v2

This commit is contained in:
Bachir Soussi Chiadmi
2015-06-10 16:57:35 +02:00
parent 1b9752f495
commit 32f26b4bf5
9 changed files with 339 additions and 124 deletions

View File

@@ -402,6 +402,40 @@ $entity_field[0][\'value\'] = format_date($entity->created, \'breves\');',
'type' => 'text_long',
);
// Exported field_base: 'field_liens'
$field_bases['field_liens'] = array(
'active' => 1,
'cardinality' => -1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'field_liens',
'field_permissions' => array(
'type' => 0,
),
'indexes' => array(),
'locked' => 0,
'module' => 'link',
'settings' => array(
'attributes' => array(
'class' => '',
'rel' => '',
'target' => 'default',
),
'display' => array(
'url_cutoff' => 80,
),
'enable_tokens' => 1,
'entity_translation_sync' => FALSE,
'profile2_private' => FALSE,
'title' => 'optional',
'title_maxlength' => 128,
'title_value' => '',
'url' => 0,
),
'translatable' => 0,
'type' => 'link_field',
);
// Exported field_base: 'field_localisation'
$field_bases['field_localisation'] = array(
'active' => 1,

View File

@@ -3926,7 +3926,7 @@ function materio_content_types_field_default_field_instances() {
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 3,
'weight' => 2,
),
'homeblock' => array(
'label' => 'hidden',
@@ -4018,7 +4018,7 @@ function materio_content_types_field_default_field_instances() {
'image_style' => '',
),
'type' => 'image',
'weight' => 1,
'weight' => 0,
),
'homeblock' => array(
'label' => 'hidden',
@@ -4115,7 +4115,7 @@ function materio_content_types_field_default_field_instances() {
'video_style' => 'normal',
),
'type' => 'video_embed_field',
'weight' => 2,
'weight' => 1,
),
'homeblock' => array(
'label' => 'hidden',
@@ -4163,6 +4163,100 @@ function materio_content_types_field_default_field_instances() {
),
);
// Exported field_instance: 'node-page-field_liens'
$field_instances['node-page-field_liens'] = array(
'bundle' => 'page',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'bookmark' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'cardbig' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'cardfull' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'cardmedium' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'cardsmall' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'default' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 3,
),
'homeblock' => array(
'label' => 'hidden',
'module' => 'link',
'settings' => array(),
'type' => 'link_default',
'weight' => 4,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'field_liens',
'label' => 'liens',
'required' => 0,
'settings' => array(
'absolute_url' => 1,
'attributes' => array(
'class' => '',
'configurable_class' => 0,
'configurable_title' => 0,
'rel' => '',
'target' => 'default',
'title' => '',
),
'display' => array(
'url_cutoff' => 80,
),
'enable_tokens' => 1,
'entity_translation_sync' => FALSE,
'rel_remove' => 'default',
'title' => 'required',
'title_label_use_field_label' => 0,
'title_maxlength' => 128,
'title_value' => '',
'url' => 0,
'user_register_form' => FALSE,
'validate_url' => 1,
),
'widget' => array(
'active' => 0,
'module' => 'link',
'settings' => array(),
'type' => 'link_field',
'weight' => 9,
),
);
// Exported field_instance: 'node-page-title_field'
$field_instances['node-page-title_field'] = array(
'bundle' => 'page',
@@ -4204,7 +4298,7 @@ function materio_content_types_field_default_field_instances() {
'label' => 'hidden',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
'weight' => 5,
),
'homeblock' => array(
'label' => 'hidden',
@@ -4732,6 +4826,7 @@ function materio_content_types_field_default_field_instances() {
t('Titre');
t('Video');
t('Workflow State');
t('liens');
t('source');
t('video');
t('website');

View File

@@ -135,15 +135,48 @@ function materio_content_types_field_group_info() {
$field_group = new stdClass();
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
$field_group->api_version = 1;
$field_group->identifier = 'group_content|node|page|homeblock';
$field_group->group_name = 'group_content';
$field_group->identifier = 'group_content_wrapper|node|page|homeblock';
$field_group->group_name = 'group_content_wrapper';
$field_group->entity_type = 'node';
$field_group->bundle = 'page';
$field_group->mode = 'homeblock';
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'content',
'label' => 'content-wrapper',
'weight' => '2',
'children' => array(
0 => 'field_liens',
1 => 'group_content',
),
'format_type' => 'div',
'format_settings' => array(
'label' => 'content-wrapper',
'instance_settings' => array(
'id' => '',
'classes' => 'group-content-wrapper field-group-div',
'description' => '',
'show_label' => '0',
'label_element' => 'h3',
'effect' => 'none',
'speed' => 'fast',
),
'formatter' => 'open',
),
);
$export['group_content_wrapper|node|page|homeblock'] = $field_group;
$field_group = new stdClass();
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
$field_group->api_version = 1;
$field_group->identifier = 'group_content|node|page|homeblock';
$field_group->group_name = 'group_content';
$field_group->entity_type = 'node';
$field_group->bundle = 'page';
$field_group->mode = 'homeblock';
$field_group->parent_name = 'group_content_wrapper';
$field_group->data = array(
'label' => 'content',
'weight' => '3',
'children' => array(
0 => 'body',
1 => 'title_field',

View File

@@ -51,6 +51,7 @@ features[field_base][] = field_emvideo
features[field_base][] = field_famille
features[field_base][] = field_identifiant
features[field_base][] = field_infos_from_company
features[field_base][] = field_liens
features[field_base][] = field_localisation
features[field_base][] = field_materiau_image
features[field_base][] = field_materiau_ref
@@ -75,6 +76,7 @@ features[field_group][] = group_4|node|materiau|cardbig
features[field_group][] = group_base|node|breve|form
features[field_group][] = group_base|node|materiau|form
features[field_group][] = group_contact_ope|node|materiau|form
features[field_group][] = group_content_wrapper|node|page|homeblock
features[field_group][] = group_content|node|page|homeblock
features[field_group][] = group_fichiers|node|materiau|form
features[field_group][] = group_head_right|node|materiau|print
@@ -170,6 +172,7 @@ features[field_instance][] = node-materiau-title_field
features[field_instance][] = node-page-body
features[field_instance][] = node-page-field_bandeau
features[field_instance][] = node-page-field_emvideo
features[field_instance][] = node-page-field_liens
features[field_instance][] = node-page-title_field
features[field_instance][] = node-webform-body
features[field_instance][] = node-webform-title_field

View File

@@ -349,6 +349,9 @@ function materio_content_types_strongarm() {
'token' => array(
'custom_settings' => FALSE,
),
'homeblock' => array(
'custom_settings' => TRUE,
),
),
'extra_fields' => array(
'form' => array(
@@ -371,7 +374,7 @@ function materio_content_types_strongarm() {
'display' => array(
'workflow_current_state' => array(
'default' => array(
'weight' => '5',
'weight' => '6',
'visible' => FALSE,
),
'teaser' => array(
@@ -379,21 +382,21 @@ function materio_content_types_strongarm() {
'visible' => FALSE,
),
'homeblock' => array(
'weight' => '5',
'weight' => '3',
'visible' => FALSE,
),
),
'workflow' => array(
'default' => array(
'weight' => '4',
'visible' => TRUE,
'visible' => FALSE,
),
'teaser' => array(
'weight' => '5',
'visible' => FALSE,
),
'homeblock' => array(
'weight' => '6',
'weight' => '4',
'visible' => FALSE,
),
),

View File

@@ -22,9 +22,8 @@ function materio_home_v2_default_page_manager_pages() {
'name' => 'role',
'settings' => array(
'rids' => array(
0 => 11,
1 => 3,
2 => 4,
0 => 1,
1 => 2,
),
),
'context' => 'logged-in-user',