[TYPO3-Solr] multiple search forms on same page
Jigal van Hemert
jigal.van.hemert at typo3.org
Thu Feb 5 11:27:49 CET 2015
Hi,
On 05/02/2015 10:19, Robert W wrote:
> Has anyone configured a page that uses two solr search forms? We have a
> main site (one domain) and then multiple sub sites (additional domains).
> On each page of the website is a search form at the top, which should
> search all domains which are indexed. There is a second search form, on
> a sub site, which only searches the domain (sub site) which the user is
> currently in.
> It would be nice to be able to configure the Solr content element using
> Typoscript to set the value for
> plugin.tx_solr.search.query.allowedSites, on a per content element
> basis. We have not found a solution for this at this time.
Two solutions come to mind:
1. the configuration for allowedSites is done on the plugin that
displays the results. If you have different pages for both searches you
can configure each of the plugins on those pages with the proper
allowedSites value.
2. if you have a field in solr where you store the subsite you can bake
your own search form and add a field that already sends a value for the
facet on the subsite.
--
Jigal van Hemert
TYPO3 CMS Active Contributor
TYPO3 .... inspiring people to share!
Get involved: typo3.org
More information about the TYPO3-project-solr
mailing list