wood burning stoves 2.0*
The moose likes Portals and Portlets and the fly likes Default Window State in Liferay 6.0.5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Default Window State in Liferay 6.0.5" Watch "Default Window State in Liferay 6.0.5" New topic
Author

Default Window State in Liferay 6.0.5

Vincent Paranpan
Greenhorn

Joined: Sep 16, 2010
Posts: 13
Hi,

I'm using Liferay 6.0.5 bundled with Tomcat and I'm having problems with the window state of my portlets. Once the user is logged in by default the portlets are in a NORMAL window state.. so is there any way that I can control that?..

Is it possible to modify the default window state of portlets within Liferay from NORMAL to MINIMIZE? How would I do that?

Here is what I'm currently using..

Liferay 6.0.5 w/ Tomcat
Spring 3
Java 1.6

Thanks,
Vincent
Guy deLyonesse
Ranch Hand

Joined: Apr 12, 2011
Posts: 200

You'd probably have to write a hook to override the base functionality of the main page.
Vincent Paranpan
Greenhorn

Joined: Sep 16, 2010
Posts: 13
Yeah, I've read some articles about hooks in Liferay, it might actually be the answer to my question, but Guy have you tried creating your own hook in Liferay 6.xx? I'm having a hard time looking for resources on hooks.
Guy deLyonesse
Ranch Hand

Joined: Apr 12, 2011
Posts: 200

Yeah hooks seem to be somewhat under-documented compared to portlets and themes. Here's a link to a blog that describes the process of creating a hook in Liferay 5.2 step by step. The process for creating one in Liferay 6 is prettymuch the same.

Exploring Web Development With a Frozen Compass - Creating a Hook

And how to set up your Liferay 6 SDK (Read this one first)
Exploring Web Development With a Frozen Compass - Setting up your SDK

David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

If you use the Eclipse plug in (open eclipse, go to the market under the 'help' menu and search 'Liferay'. It's free) and the wizards, it makes creating hooks and the selection of the specific override point much easier.
Vincent Paranpan
Greenhorn

Joined: Sep 16, 2010
Posts: 13
Hi Guy and David!

Ok, I will try both of them, once I'm done I'll post my results.

Thanks,
Vincent
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Default Window State in Liferay 6.0.5