Liferay is a Gartner Magic Quadrant Leader for the Sixth Year! Find out why

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Brian Scott Schupbach
Check for windowstate in velocity
May 16, 2012 8:38 AM
Answer

Brian Scott Schupbach

Rank: Expert

Posts: 329

Join Date: October 23, 2008

Recent Posts

Hello,

I have an intranet that refreshes every 10 minutes to display new news items using this meta tag

<meta http-equiv="refresh" content="600">

I would like to only display this tag if the user is not editing a journal article. So, I would like to test if the windowstate is maximized. The code would look something like

#if($windowstate != 'maximized' )
<meta http-equiv="refresh" content="600">

Has anyone had any experience with this? or know if this is possible?

Thanks,

Brian
Brian Scott Schupbach
RE: Check for windowstate in velocity
November 8, 2013 6:49 AM
Answer

Brian Scott Schupbach

Rank: Expert

Posts: 329

Join Date: October 23, 2008

Recent Posts

It's possible to do in the theme

#if($themeDisplay.isStateMaximized() == false)

#end