Foros de discusión

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

Eric Smith, modificado hace 10 años.

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

Junior Member Mensajes: 66 Fecha de incorporación: 28/08/12 Mensajes recientes
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, modificado hace 10 años.

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

New Member Mensajes: 9 Fecha de incorporación: 11/01/12 Mensajes recientes
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, modificado hace 10 años.

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

Junior Member Mensajes: 66 Fecha de incorporación: 28/08/12 Mensajes recientes
Thanks, I'll repost
thumbnail
Juanjo Hernández Cánovas, modificado hace 10 años.

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

Regular Member Mensajes: 183 Fecha de incorporación: 11/08/08 Mensajes recientes
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.