Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
5.1 EE SP3 (5.1.6), 5.2 EE SP1 (5.2.5)
-
All
Description
Search Portlet does not correctly link to Journal/Web Content articles. The link to the Journal/Web Content displayed the HTML of the page rather than bringing the user to the community that the Journal/Web Content was located in. This has been fixed, and the search result will bring the user to the community page where the Journal/Web Content resides in.
As part of this bug fix, the following methods has been added JournalContentSearchLocalServiceUtil:
public static List<JournalContentSearch> getArticleContentSearches(long groupId, String articleId)
public static int getLayoutIdsCount(String articleId)
and the following method has been added to JournalContentSearchUtil:
public static List<JournalContentSearch> findByArticleId(String articleId)
public static List<JournalContentSearch> findByArticleId(String articleId, int start, int end)
public static List<com.liferay.portlet.journal.model.JournalContentSearch> findByArticleId(String articleId, int start, int end, OrderByComparator obc)
public static JournalContentSearch findByArticleId_First(String articleId, OrderByComparator obc)
public static JournalContentSearch findByArticleId_Last(String articleId, OrderByComparator obc)
public static com.liferay.portlet.journal.model.JournalContentSearch[] findByArticleId_PrevAndNext(long contentSearchId, String articleId, OrderByComparator obc)
public static void removeByArticleId(String articleId)
public static int countByArticleId(String articleId)
Attachments
Issue Links
- is related to
-
LPS-4446 Search Portlet doesnt correctly link the web content articles
- Closed