留言板

Asset Publisher - Best way to filter results based on custom fields

Eric Smith,修改在10 年前。

Asset Publisher - Best way to filter results based on custom fields

Junior Member 帖子: 66 加入日期: 12-8-28 最近的帖子
I have created a hook that filters assets displayed in asset publishers based on custom fields common to the current user and each asset. I have some performance concerns with my implementation, because what I'm doing is requesting the results normally (AssetEntryServiceUtil.getEntries(assetEntryQuery)), and then filtering them further before displaying the results.

Is this the best way of filtering the results based on custom fields? If not, how?

Thanks in advance.
thumbnail
Josef Šustáček,修改在10 年前。

RE: Asset Publisher - Best way to filter results based on custom fields

New Member 帖子: 9 加入日期: 12-1-11 最近的帖子
Hi Eric,

not sure if it is an intention, you've placed your post in Spanish section of the forum. The english one:

https://www.liferay.com/community/forums/-/message_boards/category/239391

has typically much more spectators and you'll be likely to get your answer there.
Eric Smith,修改在10 年前。

RE: Asset Publisher - Best way to filter results based on custom fields

Junior Member 帖子: 66 加入日期: 12-8-28 最近的帖子
Thanks, I'll repost
thumbnail
Juanjo Hernández Cánovas,修改在10 年前。

RE: Asset Publisher - Best way to filter results based on custom fields

Regular Member 帖子: 183 加入日期: 08-8-11 最近的帖子
Take a look to my blog entry on: http://www.pymoo.es/liferay-ordenar-asset-publisher-por-un-campo-de-la-estructura/, hope this helps you!

Regards, Juanjo.