Commit 6f68e78c authored by Ivan Berezhnov's avatar Ivan Berezhnov Committed by Alex Molchanoff
Browse files

[OYPD-584] Misc fixes. (#751)

* [OYPD-584] Rename labels for layouts for node.

* [OYPD-584] Fix scroll for sidebar on landing page.

[OYPD-584] Add additional space for sidebar.

* [OYPD-584] Fix views_data_alter for taxonomy term.

[OYPD-584] Fix name for filter.

fix

* [OYPD-584] Fix groupex_pro behat tests.

* [OYPD-584] Fix layout name and js for landing page.

[OYPD-583] Add hook update.

[OYPD-584] Fix hook update.

[OYPD-584] Fix js affix for sidebar.

[OYPD-584] Fix affix jump in the bottom.
parent 8d86ee25
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@ Landing Page content type is used for adding landing pages on the site.
| Name  | Machine name | Required | Description |
| ------------- | ------------- | ------------- | ------------- |
| Title  | drupal's default  | Yes | Title of the landing page item. |
| Layout | field\_lp_layout  | Yes | Select list with the options: <ul><li>one\_column\_clean\|One Column - Full width</li><li>one\_column\|One Column</li><li>two\_column\|Two Column</li><li>two\_column\_fixed\|Two column with fixed sidebar</li></ul> |
| Layout | field\_lp_layout  | Yes | Select list with the options: <ul><li>one\_column\_clean\|One Column - Full width</li><li>one\_column\|One Column</li><li>two\_column\|Two Columns</li><li>two\_column\_fixed\|Two Columns with fixed sidebar (sticky at the top)</li></ul> |
| Meta Tags  | field\_meta_tags  | No | A meta tags field allows us to provide structured metadata and Graph meta tags for Facebook, Pinterest, LinkedIn and other social networking sites. |
| **Header Area** | Field group |||
| Content | field\_header_content | No | A paragraph embed field that will allow us to add various flexible content modules, from the predefined list of paragraph types. |
+1 −1
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ tips:
    id: layout
    plugin: text
    label: 'Layout Drop'
    body: 'Here a user can decide the page layout one column full width, one or two column or two column with a sidebar. [openy_tour:click:.field--name-field-header-content]'
    body: 'Here a user can decide the page layout one column full width, one or two columns or two columns with a sidebar. [openy_tour:click:.field--name-field-header-content]'
    location: bottom
    weight: 3
    attributes:
+2 −2
Original line number Diff line number Diff line
@@ -18,10 +18,10 @@ settings:
      label: 'One Column'
    -
      value: two_column
      label: 'Two Column'
      label: 'Two Columns'
    -
      value: two_column_fixed
      label: 'Two column with fixed sidebar'
      label: 'Two Columns with fixed sidebar (sticky at the top)'
  allowed_values_function: ''
module: options
locked: false
+15 −0
Original line number Diff line number Diff line
@@ -186,3 +186,18 @@ function openy_node_landing_update_8007() {
    'third_party_settings.field_group.group_header_area.format_settings.description'
  );
}

/**
 * Update sidebar option text.
 */
function openy_node_landing_update_8008() {
  $config_importer = \Drupal::service('openy_upgrade_tool.param_updater');
  $config = drupal_get_path('module', 'openy_node_landing');
  $config .= '/config/install/';
  $config .= 'field.storage.node.field_lp_layout.yml';
  $config_importer->update(
    $config,
    'field.storage.node.field_lp_layout',
    'settings.allowed_values'
  );
}
+1 −1
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@ function openy_node_landing_field_group_build_pre_render_alter(&$element) {
    return;
  }
  // Set visible states for Landing page form Group Sidebar Area when Layout has
  // a two column option selected.
  // a two columns option selected.
  $element['group_sidebar_area']['#states'] = [
    'visible' => [
      [
Loading