Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Default Window State in Liferay 6.0.5

 
Vincent Paranpan
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 200
Eclipse IDE Java Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'd probably have to write a hook to override the base functionality of the main page.
 
Vincent Paranpan
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 200
Eclipse IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guy and David!

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

Thanks,
Vincent
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic