Does Weather.Refresh only work in weather window?
#1
I'm trying to use a visible condition to hide the weather tab if no weather add-on has been set using !IsEmpty(Window(Weather).Property(Updated)) but to get it to show up the weather info would need to loaded. This is why I thought using
PHP Code:
<onload condition="IsEmpty(Window(Weather).Property(Updated))">Weather.Refresh</onload
would work but it doesn't.

Thanks.
Reply
#2
Weather.IsFetched ?
Reply
#3
!IsEmpty(Weather.Plugin) ?
Reply
#4
I've given up on the idea as you need to access the weather window to set the default weather add-on.

(2014-03-02, 15:09)Jeroen Wrote: Weather.IsFetched ?
Wont ever be fetched unless weather window was accessed.
(2014-03-02, 16:06)nessus Wrote: !IsEmpty(Weather.Plugin) ?
Only work in weather window.
Reply
#5
Weather.IsFetched is working fine in my skin, no need to access the weather window. Maybe you need to have a dummy label to trigger the weather loading, i.e. Weather.FanartCode.
Image
Reply
#6
Sorry I should have explained this is from a new install.
Reply
#7
!IsEmpty(Weather.Plugin) is working fine. Confluence also uses it and you don't need to open the weather window.
Image
Reply

Logout Mark Read Team Forum Stats Members Help
Does Weather.Refresh only work in weather window?0