Foren

Minimizing a portlet by default

Sajid Ahmed, geändert vor 13 Jahren.

Minimizing a portlet by default

New Member Beiträge: 7 Beitrittsdatum: 19.03.10 Neueste Beiträge
Is there any way to display a portlet minimized by default? Lets say I have a web content display portlet on some pages and I always want to have the portlet appear minimized when the page loads.

Thank you in advance.
thumbnail
Nidhi Singh, geändert vor 13 Jahren.

RE: Minimizing a portlet by default

Regular Member Beiträge: 155 Beitrittsdatum: 07.10.09 Neueste Beiträge
HI,

Sajid Ahmed:
Is there any way to display a portlet minimized by default? Lets say I have a web content display portlet on some pages and I always want to have the portlet appear minimized when the page loads.

Thank you in advance.


Yes you can use WindowState.MINIMIZED for minimizing the window state.

Nidhi
Sajid Ahmed, geändert vor 13 Jahren.

RE: Minimizing a portlet by default

New Member Beiträge: 7 Beitrittsdatum: 19.03.10 Neueste Beiträge
Nidhi, thank you so much for your response. Would you please elaborate a little more on how and where I would use the WindowState.MINIMIZE? Do I need to add it to the portlet-ext.xml or Do I need to modify the the portlet? Is there any example on how to do this?

Regards.