Foren
Search in theme
Sarah L Farley, geändert vor 11 Jahren.
Search in theme
Junior Member Beiträge: 37 Beitrittsdatum: 06.05.09 Neueste Beiträge
Hi,
I've seen that you can add the search box to your theme the following ways:
$theme.search() and $theme.journalContentSearch()
$theme.search() shows a drop down which I not desire, however the results are what I am looking for.
$theme.journalContentSearch() only searches only web content items, but doesn't have a drop down.
Anyone know how I can add the search box that searches the entire site and includes "everything", without a drop down?
Thanks,
Sarah
I've seen that you can add the search box to your theme the following ways:
$theme.search() and $theme.journalContentSearch()
$theme.search() shows a drop down which I not desire, however the results are what I am looking for.
$theme.journalContentSearch() only searches only web content items, but doesn't have a drop down.
Anyone know how I can add the search box that searches the entire site and includes "everything", without a drop down?
Thanks,
Sarah
Antoine Comble, geändert vor 10 Jahren.
RE: Search in theme
Regular Member Beiträge: 232 Beitrittsdatum: 07.09.12 Neueste Beiträge
Hi,
You can create a hook to override search portlet jsp.
As search portlet is native in Liferay, you can override jsp.
The jsp you can override are in tomcat/webapps/ROOT/html/portlet/search folder.
See following link for more information : http://www.liferay.com/fr/documentation/liferay-portal/6.0/development/-/ai/overriding-a-jsp
Hope this help you,
Antoine
You can create a hook to override search portlet jsp.
As search portlet is native in Liferay, you can override jsp.
The jsp you can override are in tomcat/webapps/ROOT/html/portlet/search folder.
See following link for more information : http://www.liferay.com/fr/documentation/liferay-portal/6.0/development/-/ai/overriding-a-jsp
Hope this help you,
Antoine