Fórumok

!!Customize Search Portlet!!

thumbnail
lutz Bremen, módosítva 11 év-val korábban

!!Customize Search Portlet!!

Expert Bejegyzések: 291 Csatlakozás dátuma: 2011.10.20. Legújabb bejegyzések
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, módosítva 11 év-val korábban

RE: !!Customize Search Portlet!!

Regular Member Bejegyzések: 111 Csatlakozás dátuma: 2008.03.13. Legújabb bejegyzések
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, módosítva 11 év-val korábban

RE: !!Customize Search Portlet!!

Expert Bejegyzések: 291 Csatlakozás dátuma: 2011.10.20. Legújabb bejegyzések
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, módosítva 11 év-val korábban

RE: !!Customize Search Portlet!!

Regular Member Bejegyzések: 151 Csatlakozás dátuma: 2008.04.14. Legújabb bejegyzések
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, módosítva 11 év-val korábban

RE: !!Customize Search Portlet!!

Expert Bejegyzések: 291 Csatlakozás dátuma: 2011.10.20. Legújabb bejegyzések
puh that sound complicated. is there any example?
thumbnail
Hitoshi Ozawa, módosítva 11 év-val korábban

RE: !!Customize Search Portlet!!

Liferay Legend Bejegyzések: 7942 Csatlakozás dátuma: 2010.03.24. Legújabb bejegyzések
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, módosítva 11 év-val korábban

RE: !!Customize Search Portlet!!

Expert Bejegyzések: 291 Csatlakozás dátuma: 2011.10.20. Legújabb bejegyzések
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, módosítva 11 év-val korábban

RE: !!Customize Search Portlet!!

Junior Member Bejegyzések: 86 Csatlakozás dátuma: 2010.11.02. Legújabb bejegyzések
You can add below entry in portal_normal.vm file inside the theme.
$theme.search()
fouad fouad, módosítva 8 év-val korábban

RE: !!Customize Search Portlet!!

Junior Member Bejegyzések: 28 Csatlakozás dátuma: 2014.08.08. Legújabb bejegyzések
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