Foros de discusión
Check for windowstate in velocity
Brian Scott Schupbach, modificado hace 11 años.
Check for windowstate in velocity
Expert Mensajes: 329 Fecha de incorporación: 23/10/08 Mensajes recientes
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
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, modificado hace 10 años.
RE: Check for windowstate in velocity
Expert Mensajes: 329 Fecha de incorporación: 23/10/08 Mensajes recientes
It's possible to do in the theme
#if($themeDisplay.isStateMaximized() == false)
#end
#if($themeDisplay.isStateMaximized() == false)
#end