Foren

Home » Liferay Portal » English » 3. Development

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
lutz Bremen
!!Customize Search Portlet!!
1. Juni 2012 01:25
Antwort

lutz Bremen

Rang: Expert

Nachrichten: 291

Eintrittsdatum: 20. Oktober 2011

Neue Beiträge

Guys i really need your help.

i got this form in the theme

1<form method="GET" action="/web/kafer-edv/suche">
2    <input type="text" name="vorname" id="vorname" size="25">
3  </p>
4  <p><input type="submit" value="Suche"></p>
5</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
 1<aui:fieldset>
 2        <aui:input inlineField="<%= true %>" label="" name="keywords" size="30" value="<%= keywords %>" />
 3
 4        <aui:select inlineField="<%= true %>" label="" name="groupId">
 5            <aui:option label="everything" selected="<%= groupId == 0 %>" value="0" />
 6            <aui:option label='<%= "this-" + (group.isOrganization() ? "organization" : "site") %>' selected="<%= groupId != 0 %>" value="<%= group.getGroupId() %>" />
 7        </aui:select>
 8
 9        <aui:button align="absmiddle" border="0" name="search" onClick='<%= renderResponse.getNamespace() + "search();" %>' src='<%= themeDisplay.getPathThemeImages() + "/common/search.png" %>' title="search" type="image" />
10
11        <portlet:renderURL var="clearSearchURL" copyCurrentRenderParameters="<%= false %>">
12            <portlet:param name="groupId" value="0" />
13        </portlet:renderURL>
14
15        <aui:button align="absmiddle" border="0" href="<%= clearSearchURL %>" name="clear-search" src='<%= themeDisplay.getPathThemeImages() + "/common/undo.png" %>' title="clear-search" type="image" />
16    </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
RE: !!Customize Search Portlet!!
1. Juni 2012 02:47
Antwort

Chintan Akhani

Rang: Regular Member

Nachrichten: 111

Eintrittsdatum: 13. März 2008

Neue 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
lutz Bremen
RE: !!Customize Search Portlet!!
1. Juni 2012 02:58
Antwort

lutz Bremen

Rang: Expert

Nachrichten: 291

Eintrittsdatum: 20. Oktober 2011

Neue 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
Anhang

Anhänge: Unbenannt.png (15,1k)
Sergio Romero
RE: !!Customize Search Portlet!!
1. Juni 2012 04:43
Antwort

Sergio Romero

Rang: Regular Member

Nachrichten: 148

Eintrittsdatum: 14. April 2008

Neue 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
lutz Bremen
RE: !!Customize Search Portlet!!
1. Juni 2012 05:36
Antwort

lutz Bremen

Rang: Expert

Nachrichten: 291

Eintrittsdatum: 20. Oktober 2011

Neue Beiträge

puh that sound complicated. is there any example?
Hitoshi Ozawa
RE: !!Customize Search Portlet!!
1. Juni 2012 05:42
Antwort

Hitoshi Ozawa

Rang: Liferay Legend

Nachrichten: 7949

Eintrittsdatum: 23. März 2010

Neue 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
lutz Bremen
RE: !!Customize Search Portlet!!
1. Juni 2012 05:59
Antwort

lutz Bremen

Rang: Expert

Nachrichten: 291

Eintrittsdatum: 20. Oktober 2011

Neue 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
Deepjyoti Nath
RE: !!Customize Search Portlet!!
19. Juli 2012 09:58
Antwort

Deepjyoti Nath

Rang: Junior Member

Nachrichten: 81

Eintrittsdatum: 1. November 2010

Neue Beiträge

You can add below entry in portal_normal.vm file inside the theme.
$theme.search()
fouad fouad
RE: !!Customize Search Portlet!!
9. Juni 2015 08:50
Antwort

fouad fouad

Rang: Junior Member

Nachrichten: 28

Eintrittsdatum: 8. August 2014

Neue 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