Fórum

How to dynamically set up a page and portlets

Hervé DARRITCHON, modificado 12 Anos atrás.

How to dynamically set up a page and portlets

New Member Mensagem: 1 Data de Entrada: 02/04/12 Postagens Recentes
Hye,

We are currently developping a PoC ("proof of concept") with Liferay 6.0.5 in it.
We'd like to be able to set up the page (template, layout and theme) depending on the subject the user is dealing with.
We also would like to be able to push different set of porplets depending on the subject.

Let me explain our needs :
A user is dealing with a order of a Car then liferay is pushing some portlets and a layout different than if he was ordering a boat for example.
We can't solve this problem through rights and roles.

Is it possible to use velocity to dynamically set up the pages and portlets displayed.

Thanks

Hervé
thumbnail
Mayur Patel, modificado 12 Anos atrás.

RE: How to dynamically set up a page and portlets

Expert Postagens: 358 Data de Entrada: 17/11/10 Postagens Recentes
I'm not sure this thing can be possible to push some portlets depends on subject.

you can refer this link,
Programmatically Create a Layout and Place a Portlet on it

Thanks
thumbnail
amit doshi, modificado 12 Anos atrás.

RE: How to dynamically set up a page and portlets

Liferay Master Postagens: 550 Data de Entrada: 29/12/10 Postagens Recentes
Hi Hervé DARRITCHON,

I think you can create different page template and inside the page template you can define the portlet layout and also put the required portlets on it.

And in your case you need to make the different page templates according to your Subjects.

Suppose you have 4 subjects then you have to make 4 page template and call dynamically according to your need.

Hope this helps.

Thanks & Regards,
Amit Doshi
thumbnail
Mayur Patel, modificado 12 Anos atrás.

RE: How to dynamically set up a page and portlets

Expert Postagens: 358 Data de Entrada: 17/11/10 Postagens Recentes
Thanks amit for reply, that's correct, Page template can solve his problem, just to call based on the subject defined.