Hi Everyone,
I am trying to find a way to re-create our landing page cross site search button that you can see here (https://ibali.uct.ac.za/s/ibali/page/welcome. We borrowed this a few years back from the Explore/Grid theme developed by @benbakelaar and others.
Basically we included this code:
<div id="search_center" class="home-hero">
<div id="home-hero-content">
<h2>Welcome to UCT Digital Collections</h2>
<div id="searchbar">
<?php $searchAction = $this->url('site/cross-site-search', ['action' => 'results'], true); //echo $this->partial('common/search-form'); ?>
<form action="<?php echo $this->escapeHtml($searchAction); ?>" id="search-form">
<input type="text" name="fulltext_search" value="" placeholder="Search" aria-label="Search">
<button type="submit">Search</button>
</form>
</div>
<div id="strapline">Search all items in our collections.</div>
</div>
in a section of our layout.phtml file of the customised version of the default theme (it is within an if statement to check if it is the landing page).
I am now wanting to upgrade our theme to freedom, and keep this cross site search button there. Ideally I would like to do it without having to develop a custom version of the freedom theme with just that php code (plus I am not sure where I would include it as the layout.phtml file structure is very different in freedom compared to default themes). Also I really only need this button on our overall landing page, not yet on any other site.
We do have block plus installed with the various search and advanced search buttons, but they are not quite what we are looking for at the moment in terms of the cross-site search. I realise I could do an Advanced Search button (with the search functionality being stronger there as well), but then I might need to add every item across our 50+ sites to the main landing site, and am not sure if I want to do that yet.
I might be overcomplicating the issue also, and would be happy to hear any other solutions.
Thank you
Sanjin