• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Default Window State in Liferay 6.0.5

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 200
Eclipse IDE Java Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You'd probably have to write a hook to override the base functionality of the main page.
 
Vinvin Parpar
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Vinvin Parpar
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic