I am trying to write a simple Liferay portlet in Python. The portlet will show a list of categories and when clicked will show a list of Web Content articles (journal articles) of a certain structure.
I am able to get the list of categories but cannot find a way using the liferay api to get a list of articles by category?
I have searched allover but it seems to me the method should be on this page:
The proposed solution is good yet needs one extra piece. It will return all Assets - web-content-articles are a subset of assets. For example, you will get documents (which have been categorized the same way) as well. To refine your search, add a className, classNameid, or classTypeId to the AssetEntryQuery (in addition to the category id). Alternatively, within the for-loop you could pick out the web-content, ignore the others.
Thanks, AssetEntryQuery was the solution:
It is a Java implementation but really easy to convert into python.