Header config option: disable search box
complete
Gabe Ormsby
In certain contexts such as a department intranet, site-specific search indexing may be disabled (e.g. via RobotsTxt settings.) In those cases, presenting a search box in the header may lead to confusion, as users may expect it to provide on-site search. Currently we can disable the UMN Search module, but that causes a persistent error when the theme renders each page. I propose:
- Adding a theme setting for 'disable umn search box in header';
- Adding a check in folwell.theme to decide whether to render the search box element, rather than as currently, rendering it unconditionally; and
- Adding a conditional check in the header include file to output the search box only if it is defined.
Dimitri Tadege
marked this post as
complete
Dimitri Tadege
marked this post as
in progress
Dimitri Tadege
marked this post as
under review
C
Cody Hanson
If you're feeling ambitious, this could also include an option to swap in Drupal's native search.