Closed patheard closed 4 years ago
Once update, update the Solr config with:
ansible-playbook play_solr-update.yml -i environments/env --vault-id env@prompt
Next, add the missing custom blocks:
Structure > Block Layout
from main menu.Custom Block Library
tab.Add Custom Block
button.Content
block type.Mega Menu Icon
and Solr Search Footer
blocks, making sure text format is Full HTML
.<!-- Mega Menu Icon -->
<a id="menu-toggle-icon" class="toggle mega-menu-toggle-icon" title="Menu" href="#open-menu">
<span class="icon"></span><span class="label">Menu</span>
</a>
<!-- Solr Search Footer -->
<div class="search-block-form contextual-region block block-search container-inline" data-drupal-selector="search-block-form" role="search">
<form action="/en/solr/search" method="get" accept-charset="UTF-8">
<div class="js-form-item form-item js-form-type-search form-type-search js-form-item-keys form-item-keys form-no-label">
<label for="edit-keys" class="visually-hidden">What are you looking for today?</label>
<input title="Enter the terms you wish to search for." data-drupal-selector="edit-keys" type="search" name="search_api_fulltext" value="" size="15" maxlength="128" class="form-search" placeholder="What are you looking for today?">
</div>
<div data-drupal-selector="edit-actions" class="form-actions js-form-wrapper form-wrapper">
<button class="search-form__submit box--purple box--arrow button js-form-submit form-submit" data-twig-suggestion="search_results_submit" data-drupal-selector="edit-submit" type="submit" value="Search">Search</button>
</div>
</form>
</div>
Next, click Translate
on the Solr Search Footer
Edit menu and add the following for the French search:
<!-- Solr Search Footer -->
<div class="search-block-form contextual-region block block-search container-inline" data-drupal-selector="search-block-form" role="search">
<form action="/fr/solr/search" method="get" accept-charset="UTF-8">
<div class="js-form-item form-item js-form-type-search form-type-search js-form-item-keys form-item-keys form-no-label">
<label for="edit-keys" class="visually-hidden">Qu'est-ce que vous recherchez aujourd'hui?</label>
<input title="Saisissez les termes que vous souhaitez rechercher." data-drupal-selector="edit-keys" type="search" name="search_api_fulltext" value="" size="15" maxlength="128" class="form-search" placeholder="Qu'est-ce que vous recherchez aujourd'hui?">
</div>
<div data-drupal-selector="edit-actions" class="form-actions js-form-wrapper form-wrapper">
<button class="search-form__submit box--purple box--arrow button js-form-submit form-submit" data-twig-suggestion="search_results_submit" data-drupal-selector="edit-submit" type="submit" value="Chercher">Chercher</button>
</div>
</form>
</div>
Finally, go back to the Block Layout
screen and place the blocks:
Navigation section: Place block
.
Mega Menu Icon
, without Display title
.
Move it to the third block in the section.
Footer section: Place block
.
Solr Search Block EN
, without Display title
.
Move it to the third block in the section.
Fixed and part of #57
The command sequence is: