掲示板

Search Portlet in Header

12年前 に Graeme Dougal によって更新されました。

Search Portlet in Header

New Member 投稿: 3 参加年月日: 11/02/07 最新の投稿
Hi

Created own theme based on classis theme and want to include a search form in the header that then displays search results via a search portlet that has already been developed, cant seem to find a way to do this...

Have editied portal_normal.vm to incldue the search form and am trying to link to the correct porlet action but then actioning the search, the search portlet is displayed but a message in the portlet states "You do not have the roles required to access this portlet. "

Any ideas / suggestions..

Cheers
Graeme
thumbnail
12年前 に David H Nebinger によって更新されました。

RE: Search Portlet in Header

Liferay Legend 投稿: 14915 参加年月日: 06/09/02 最新の投稿
Silly question, but have you checked the permissions on the portlet so that it can be viewed by everyone, including guest?
thumbnail
12年前 に Bavithra Rajendran によって更新されました。

RE: Search Portlet in Header

Regular Member 投稿: 123 参加年月日: 09/10/08 最新の投稿
Hi,

Did you try like this in your portal_normal.vm ?:

$theme.search()


Thanks,
Bavithra Rajendran
thumbnail
11年前 に Neetu Mishra によって更新されました。

RE: Search Portlet in Header

Junior Member 投稿: 75 参加年月日: 12/05/21 最新の投稿
Bavithra Rajendran:
Did you try like this in your portal_normal.vm ?:

$theme.search()




Hi Bavithra,

I have tried this & it's working also but my requirements are to provide only Web content search feature to the guest user. Do you have any idea how to implement this in the theme?

Thanks in advance!!

Regards,
Neetu
thumbnail
11年前 に Neetu Mishra によって更新されました。

RE: Search Portlet in Header

Junior Member 投稿: 75 参加年月日: 12/05/21 最新の投稿
Hello Everyone,

Try this in your portal_normal.vm for web content search emoticon
$theme.journalContentSearch()


Thanks & Regards,
Neetu
thumbnail
12年前 に Sergio González Barrios によって更新されました。

RE: Search Portlet in Header

Junior Member 投稿: 65 参加年月日: 11/04/27 最新の投稿
Do you set Group ID for your Search portlet on theme?