Skip to content

Instantly share code, notes, and snippets.

View barrychapman's full-sized avatar
💭
down in it

Barry Chapman barrychapman

💭
down in it
  • Volkswagen Group of America
  • Ypsilanti, MI
View GitHub Profile
@barrychapman
barrychapman / search-configuration-in-theme.vm
Created May 6, 2019 05:02 — forked from elindoorn/search-configuration-in-theme.vm
Change search portlet configuration in theme (Liferay 6.2)
## Replace $theme.search() with our own form, note that you can still use it, just make sure the search.vm
## is loaded before you add the search portlet. We removed it to simplify changing styles on the search bar
## in the theme.
<form action="" method="get" name="search">
<input name="p_p_id" type="hidden" value="3">
<input name="p_p_lifecycle" type="hidden" value="0">
<input name="p_p_state" type="hidden" value="maximized">
<input name="p_p_mode" type="hidden" value="view">
<input name="_3_struts_action" type="hidden" value="/search/search">
<input name="_3_keywords" size="30" title="Search" type="text" value="" placeholder="Search here...">