Fórumok

Journal content search is not working in scope private pages

thumbnail
Faris Abdulla, módosítva 12 év-val korábban

Journal content search is not working in scope private pages

Regular Member Bejegyzések: 183 Csatlakozás dátuma: 2009.09.02. Legújabb bejegyzések
Hi,

I'm having the problem of journal content search in community private pages. Its working fine in same community public pages. Actually I'm need of urgent to fix this issue.. Because I didnt check the search functionality in private pages before the test started. I hope it will work fine in all the community pages (public/private) but getting 0 results in private page and in public page getting 10 .. results with same keyword .

Please help me on this issue..
using liferay 5.2.3

Regards,
Faris
thumbnail
Faris Abdulla, módosítva 12 év-val korábban

RE: Journal content search is not working in scope private pages

Regular Member Bejegyzések: 183 Csatlakozás dátuma: 2009.09.02. Legújabb bejegyzések
Hi,

In liferay the search is depended on private and public layout.
If need to get the web content in private page from public layout. Need to set layout.isPrivateLayout() to false.

I edited the jsp of journal_content_search portlet.
search.jsp
This line I customized:
contentHits.recordHits(results, layout.getGroupId(), layout.isPrivateLayout(), searchContainer.getStart(), searchContainer.getEnd());
To:
contentHits.recordHits(results, layout.getGroupId(), false, searchContainer.getStart(), searchContainer.getEnd());
izzul syafiq, módosítva 12 év-val korábban

RE: Journal content search is not working in scope private pages

New Member Bejegyzések: 2 Csatlakozás dátuma: 2011.10.18. Legújabb bejegyzések
hi Faris Abdulla,

i am in new in liferay. can i ask you something.......
i have some problem in my Journal content search. my situasion is when i want to search using Journal content search, liferay will show 2 table result data searching as like in that picture i attach.


my question is how to solve this problem?