Foros de discusión

Unable to use Asset Publisher in production

Pablo Tatann, modificado hace 12 años.

Unable to use Asset Publisher in production

Junior Member Mensajes: 62 Fecha de incorporación: 18/11/10 Mensajes recientes
Hello everybody,

We'd like to use the Asset Publisher portlet from Liferay 6.0.5 but we're unable to display it on a page without getting a timeout (or worse killing Tomcat). Indeed we have more than 2,500 web contents (journal articles) and, by default, when adding an Asset Publisher, it tries to display a summary of all our journal articles, thus the timeout/overload. emoticon
Once configured, it can be set to display only a category of articles (what we're trying to do), but we can't access the configuration screen since the page never renders.
Is there a way to configure an Asset Publisher before adding it to a page ?

Regards,

Pablo
thumbnail
Nagendra Kumar Busam, modificado hace 12 años.

RE: Unable to use Asset Publisher in production

Liferay Master Mensajes: 678 Fecha de incorporación: 7/07/09 Mensajes recientes
Can you please cross check once by adding Web Content List to another page.

Apart from web content items(2500), do you have any other assets which are more in number
Pablo Tatann, modificado hace 12 años.

RE: Unable to use Asset Publisher in production

Junior Member Mensajes: 62 Fecha de incorporación: 18/11/10 Mensajes recientes
Hello and thanks for your answer,

I have no problem adding a Web Content List portlet to another page since this one appears empty by default and needs to be configured first (which is the exact behaviour I would like for Asset Publisher emoticon ).

Apart from web content items, we have a few hundreds pictures (around 500), 100+ documents (PDF), but no Wiki/forum.

Problem is the Web Content List doesn't provide filtering (categories, tags) like the Asset Publisher, and doesn't have a nice look... I mean as nice as Asset Publisher emoticon
thumbnail
Nagendra Kumar Busam, modificado hace 12 años.

RE: Unable to use Asset Publisher in production

Liferay Master Mensajes: 678 Fecha de incorporación: 7/07/09 Mensajes recientes
whether is it only rendering problem or not at all adding?

Can you post log message if it is throwing any error
Pablo Tatann, modificado hace 12 años.

RE: Unable to use Asset Publisher in production

Junior Member Mensajes: 62 Fecha de incorporación: 18/11/10 Mensajes recientes
The portlet is correctly added to the page (I can see it in the Layout table), there's actually no error in the logs, just that the page is so long to render that we get a timeout (or sometimes tomcat process dies).
We've tried in our integration environment (which has far less content), the page is displayed after some time with the Asset Publisher portlet containing a summary of all our articles

Is there a way to change default configuration of the Asset Publisher portlet ? Maybe with a hook but I've never done it
thumbnail
Nagendra Kumar Busam, modificado hace 12 años.

RE: Unable to use Asset Publisher in production (Respuesta)

Liferay Master Mensajes: 678 Fecha de incorporación: 7/07/09 Mensajes recientes
I have created a simple hook for solve loading issue. By default asset selection i changed to manual in init.jsp of asset_publisher. Hope it helps emoticon

Please find the attachment for the hook
Pablo Tatann, modificado hace 12 años.

RE: Unable to use Asset Publisher in production

Junior Member Mensajes: 62 Fecha de incorporación: 18/11/10 Mensajes recientes
Thanks a lot for the hook, I'm going to try it emoticon
Pablo Tatann, modificado hace 12 años.

RE: Unable to use Asset Publisher in production

Junior Member Mensajes: 62 Fecha de incorporación: 18/11/10 Mensajes recientes
It works wonderfully and yet it's so simple ! Thanks again ! emoticon

I hope Liferay will make it the default configuration for the upcoming version
thumbnail
Nagendra Kumar Busam, modificado hace 12 años.

RE: Unable to use Asset Publisher in production

Liferay Master Mensajes: 678 Fecha de incorporación: 7/07/09 Mensajes recientes
Good to hear it helped you emoticon