Foren

RE: !!Customize Search Portlet!!

thumbnail
lutz Bremen, geändert vor 11 Jahren.

!!Customize Search Portlet!!

Expert Beiträge: 291 Beitrittsdatum: 20.10.11 Neueste Beiträge
Guys i really need your help.

i got this form in the theme

<form method="GET" action="/web/kafer-edv/suche">
    <input type="text" name="vorname" id="vorname" size="25">
  <p></p>
  <p><input type="submit" value="Suche"></p>
</form>


and the text that i type in should be transefered to the searchportlet. i know that the form in the search.jsp is like this
<aui:fieldset>
		<aui:input inlineField="<%= true %>" label="" name="keywords" size="30" value="<%= keywords %>" />

		<aui:select inlinefield="<%= true %>" label="" name="groupId">
			<aui:option label="everything" selected="<%= groupId == 0 %>" value="0" />
			<aui:option label="<%= &quot;this-&quot; + (group.isOrganization() ? &quot;organization&quot; : &quot;site&quot;) %>" selected="<%= groupId != 0 %>" value="<%= group.getGroupId() %>" />
		</aui:select>

		<aui:button align="absmiddle" border="0" name="search" onClick="<%= renderResponse.getNamespace() + &quot;search();&quot; %>" src="<%= themeDisplay.getPathThemeImages() + &quot;/common/search.png&quot; %>" title="search" type="image" />

		<portlet:renderurl var="clearSearchURL" copycurrentrenderparameters="<%= false %>">
			<portlet:param name="groupId" value="0" />
		</portlet:renderurl>

		<aui:button align="absmiddle" border="0" href="<%= clearSearchURL %>" name="clear-search" src="<%= themeDisplay.getPathThemeImages() + &quot;/common/undo.png&quot; %>" title="clear-search" type="image" />
	</aui:fieldset>


but how do i get my word into the search.

PLEASE i need a fast answer.

im using the latest liferay version with tomcat.
and im not the best programmer so a code example would be nice

thanks in advance
Chintan Akhani, geändert vor 11 Jahren.

RE: !!Customize Search Portlet!!

Regular Member Beiträge: 111 Beitrittsdatum: 13.03.08 Neueste Beiträge
Hi lutz Bremen,

If you want to include search portlet in theme than you can achieve it without search related changes. Please let me know if it is the case.

Thanks,
Chintan
thumbnail
lutz Bremen, geändert vor 11 Jahren.

RE: !!Customize Search Portlet!!

Expert Beiträge: 291 Beitrittsdatum: 20.10.11 Neueste Beiträge
if this is an option too it would be nice but if i include the search portlet in my header it shows the searchresult also in the header and thats crap.
i want it like this
thumbnail
Sergio Romero Zayas, geändert vor 11 Jahren.

RE: !!Customize Search Portlet!!

Regular Member Beiträge: 151 Beitrittsdatum: 14.04.08 Neueste Beiträge
Very nice your picture !!

You have to make a portlet search results, with "public render parameter". You can send the action from your header in this portlet search results.

PD. excuse my English, it is Google who translates for me!. emoticon
thumbnail
lutz Bremen, geändert vor 11 Jahren.

RE: !!Customize Search Portlet!!

Expert Beiträge: 291 Beitrittsdatum: 20.10.11 Neueste Beiträge
puh that sound complicated. is there any example?
thumbnail
Hitoshi Ozawa, geändert vor 11 Jahren.

RE: !!Customize Search Portlet!!

Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
A little bit of an old thread but may help you get started:

http://www.liferay.com/community/forums/-/message_boards/message/6036582
thumbnail
lutz Bremen, geändert vor 11 Jahren.

RE: !!Customize Search Portlet!!

Expert Beiträge: 291 Beitrittsdatum: 20.10.11 Neueste Beiträge
ok. so its easier to solve it by editing the search portlets view? it should not be shown up in the head. the results ahve to be in the content
Rhina Karr, geändert vor 11 Jahren.

RE: !!Customize Search Portlet!!

Junior Member Beiträge: 86 Beitrittsdatum: 02.11.10 Neueste Beiträge
You can add below entry in portal_normal.vm file inside the theme.
$theme.search()
fouad fouad, geändert vor 8 Jahren.

RE: !!Customize Search Portlet!!

Junior Member Beiträge: 28 Beitrittsdatum: 08.08.14 Neueste Beiträge
dear chintan, others emoticon

i noticed in different posts that ur advising on how to change the default text in a search portlet.
however i still couldnt successfully accomplish it.
could you please write in detail what should i do to change the default text of the search portlet.


thank you