diff --git a/config/sync/block.block.globalsearch.yml b/config/sync/block.block.exposed_search.yml similarity index 50% rename from config/sync/block.block.globalsearch.yml rename to config/sync/block.block.exposed_search.yml index 01cc6ef123..d4cbffdecb 100644 --- a/config/sync/block.block.globalsearch.yml +++ b/config/sync/block.block.exposed_search.yml @@ -1,24 +1,26 @@ -uuid: 1ef39009-13ab-424a-a4cf-50cca466b674 +uuid: 07af8993-33e3-4053-bbf7-324d21a6f1a2 langcode: en status: true dependencies: + config: + - views.view.search module: - - joinup_search - system + - views theme: - ventuno -id: globalsearch +id: exposed_search theme: ventuno region: featured -weight: -26 +weight: -25 provider: null -plugin: joinup_search_global_search +plugin: 'views_exposed_filter_block:search-page_1' settings: - id: joinup_search_global_search - label: 'Global search' - provider: joinup_search + id: 'views_exposed_filter_block:search-page_1' + label: '' + provider: views label_display: '0' - template_suggestion: homepage + views_label: '' visibility: request_path: id: request_path diff --git a/config/sync/block.block.views_block__discover_topics_block.yml b/config/sync/block.block.views_block__discover_topics_block.yml index a9b849027a..3b6f496528 100644 --- a/config/sync/block.block.views_block__discover_topics_block.yml +++ b/config/sync/block.block.views_block__discover_topics_block.yml @@ -12,7 +12,7 @@ dependencies: id: views_block__discover_topics_block theme: ventuno region: featured -weight: -25 +weight: -24 provider: null plugin: 'views_block:discover_topics-block' settings: diff --git a/config/sync/views.view.search.yml b/config/sync/views.view.search.yml index 9581a4d890..f9ad013d84 100644 --- a/config/sync/views.view.search.yml +++ b/config/sync/views.view.search.yml @@ -183,17 +183,19 @@ display: description: '' use_operator: false operator: search_api_fulltext_op + operator_limit_selection: false + operator_list: { } identifier: keys required: false remember: false multiple: false remember_roles: authenticated: authenticated + licence_manager: '0' anonymous: '0' moderator: '0' administrator: '0' - operator_limit_selection: false - operator_list: { } + rdf_graph_manager: '0' is_grouped: false group_info: label: '' diff --git a/web/themes/ventuno/templates/block/block--exposed-search.html.twig b/web/themes/ventuno/templates/block/block--exposed-search.html.twig new file mode 100644 index 0000000000..0ea72d7ba0 --- /dev/null +++ b/web/themes/ventuno/templates/block/block--exposed-search.html.twig @@ -0,0 +1,21 @@ +{# +/** + * @file + * Default theme implementation for the global search bar. + * + * Available variables: + * - filters: the search filters, to be displayed as chips. + * + * @ingroup themeable + */ +#} +{% + set search_url = path('view.search.page_1') +%} +
{% trans %}Need more search options? Use our advanced search{% endtrans %}
diff --git a/web/themes/ventuno/templates/form/form-element--views-exposed-form-search.html.twig b/web/themes/ventuno/templates/form/form-element--views-exposed-form-search.html.twig new file mode 100644 index 0000000000..ae745a547c --- /dev/null +++ b/web/themes/ventuno/templates/form/form-element--views-exposed-form-search.html.twig @@ -0,0 +1,102 @@ +{# +/** + * @file + * Default theme implementation for a form element views exposed form search block. + * + * Available variables: + * - attributes: HTML attributes for the containing element. + * - errors: (optional) Any errors for this form element, may not be set. + * - prefix: (optional) The form element prefix, may not be set. + * - suffix: (optional) The form element suffix, may not be set. + * - required: The required marker, or empty if the associated form element is + * not required. + * - type: The type of the element. + * - name: The name of the element. + * - label: A rendered label element. + * - label_display: Label display setting. It can have these values: + * - before: The label is output before the element. This is the default. + * The label includes the #title and the required marker, if #required. + * - after: The label is output after the element. For example, this is used + * for radio and checkbox #type elements. If the #title is empty but the + * field is #required, the label will contain only the required marker. + * - invisible: Labels are critical for screen readers to enable them to + * properly navigate through forms but can be visually distracting. This + * property hides the label for everyone except screen readers. + * - attribute: Set the title attribute on the element to create a tooltip but + * output no label element. This is supported only for checkboxes and radios + * in \Drupal\Core\Render\Element\CompositeFormElementTrait::preRenderCompositeFormElement(). + * It is used where a visual label is not needed, such as a table of + * checkboxes where the row and column provide the context. The tooltip will + * include the title and required marker. + * - description: (optional) A list of description properties containing: + * - content: A description of the form element, may not be set. + * - attributes: (optional) A list of HTML attributes to apply to the + * description content wrapper. Will only be set when description is set. + * - description_display: Description display setting. It can have these values: + * - before: The description is output before the element. + * - after: The description is output after the element. This is the default + * value. + * - invisible: The description is output after the element, hidden visually + * but available to screen readers. + * - disabled: True if the element is disabled. + * - title_display: Title display setting. + * + * @see template_preprocess_form_element() + * + * @ingroup themeable + */ +#} +{% + set classes = [ + 'input-group', + 'js-form-item', + 'form-item', + 'js-form-type-' ~ type|clean_class, + 'form-item-' ~ name|clean_class, + 'js-form-item-' ~ name|clean_class, + title_display not in ['after', 'before'] ? 'form-no-label', + disabled == 'disabled' ? 'form-disabled', + errors ? 'form-item--error', + col_class ? col_class, + margin_class ? margin_class, +] +%} +{% + set description_classes = [ + 'description', + 'form-text', + 'text-muted', + description_display == 'invisible' ? 'visually-hidden', +] +%} +