Fórum

Can web-content-display-portlet customize to show "Non-approved" content

thumbnail
Samir Gami, modificado 12 Anos atrás.

Can web-content-display-portlet customize to show "Non-approved" content

Regular Member Postagens: 162 Data de Entrada: 04/02/11 Postagens Recentes
Hi,

I have requirements to display Non-Approved web-content into the web-content-display portlet,

Details:
- We have workflow for JournalArticle,
- When user creates the web-content it pass through the 2-stag workflow,
- At last step of workflow, web-content status change to "Publish",
- But, I want to show the in-progress ("Pending"), asset in to the web-content-display portlet.

Does Anybody did such strange thing before ?

Regards,
Samir
Oliver Bayer, modificado 12 Anos atrás.

RE: Can web-content-display-portlet customize to show "Now-approved" conten

Liferay Master Postagens: 894 Data de Entrada: 18/02/09 Postagens Recentes
Hi Samir,

the good news is I have implemented this feature already for Liferay 5.2.3 and 6. The bad news is you have to code it or copy my code into the right structures emoticon.

Take a look at the following ticket LPS-15096. You don't need all of the modifications I've done but give it a try. As you can see I've tried to implement a live preview functionality but it only works for public pages (because of the impersonation of the guest user). Unfortunately I don't have the time until now to digg into the feature of impersonating roles as Jorge has suggested.

If you have any questions feel free to ask.

HTH Oli
thumbnail
Samir Gami, modificado 12 Anos atrás.

RE: Can web-content-display-portlet customize to show "Non-approved" conten

Regular Member Postagens: 162 Data de Entrada: 04/02/11 Postagens Recentes
Thanks Oliver for quick reply,
I will give a try to this solution, Let you know soon emoticon

Regards,
Samir Gami
Oliver Bayer, modificado 12 Anos atrás.

RE: Can web-content-display-portlet customize to show "Non-approved" conten

Liferay Master Postagens: 894 Data de Entrada: 18/02/09 Postagens Recentes
Hi Samir,

do you succeed in applying my modifications?
If you need any additional info or found bugs please let me know.

Greets Oli
thumbnail
Samir Gami, modificado 12 Anos atrás.

RE: Can web-content-display-portlet customize to show "Non-approved" conten

Regular Member Postagens: 162 Data de Entrada: 04/02/11 Postagens Recentes
Sorry for late response, I was on vacation,

Yes, one of the my colleague archived this requirements by doing some changes into the JSP through hooks.