2015-01-07, 19:25
Hello
Sadly Variables evaluate verry slow if "Container(foo).Hasfocus(bar)" is used.
Ideas for workarounds??
My Widgetvariables look like this:
and the content:
Sadly it is to slow for my taste.
EDIT:(One List with different content according to Mainmenufocus position)/EDITEND
As soon as i code every widget separatly and use "<visible>Container(9000).Hasfocus(foo)</visible>" on top.
I dont have any speed issues.
Do i realy need to code 10 Times The same Widget with an other ID (and Content) to get the speed which im after.
Copy Paste 10 Times the same code, chanche the "List- and the "Container(foo).ListItem.XYZ" ID for every Copy to get this to work fast??
There Have to be other solutions! (Any Ideas?)
Did experimenting with includes for equal Partrs and Variable IDs ($VAR[WidgetID]) according to Container(9000).HasFocus(foo) without luck.
May one of You have a Idea or can Help.
(Goal is to show diffrent widgets (Content) according to the Focusposition of the Homemenu)
Regards
Sadly Variables evaluate verry slow if "Container(foo).Hasfocus(bar)" is used.
Ideas for workarounds??
My Widgetvariables look like this:
PHP Code:
<variable name="DBWidgetLeft">
<value condition="Container(9000).Hasfocus(3) + [[!Skin.HasSetting(LeftMusicWidgetShow-RecentAlbums) + !Skin.HasSetting(LeftMusicWidgetShow-RecentSongs) + !Skin.HasSetting(LeftMusicWidgetShow-Nothing) + !Skin.HasSetting(LeftMusicWidgetShow-OnFocus)] | Skin.HasSetting(LeftMusicWidgetShow-OnFocus)]">special://skin/widgetplaylists/Music/Music_(OnFocus).xsp</value>
<value condition="Container(9000).Hasfocus(3) + Skin.HasSetting(LeftMusicWidgetShow-RecentAlbums)">plugin://service.library.data.provider?type=recommendedalbums&reload=$INFO[Window.Property(recommendedalbums)]</value> <!-- musicdb://recentlyplayedalbums/ -->
<value condition="Container(9000).Hasfocus(3) + Skin.HasSetting(LeftMusicWidgetShow-RecentSongs)">special://skin/widgetplaylists/Music/Music_(RecentlyPlayed-Songs).xsp</value>
<value condition="Container(9000).Hasfocus(8) + [[!Skin.HasSetting(LeftMusicVideosWidgetShow-Recent) + !Skin.HasSetting(LeftMusicVideosWidgetShow-Nothing) + !Skin.HasSetting(LeftMusicVideosWidgetShow-OnFocus)] | Skin.HasSetting(LeftMusicVideosWidgetShow-OnFocus)]">special://skin/widgetplaylists/MusicVideos/MusicVideos_(OnFocus).xsp</value>
<value condition="Container(9000).Hasfocus(8) + Skin.HasSetting(LeftMusicVideosWidgetShow-Recent)">special://skin/widgetplaylists/MusicVideos/Musicvideos_(InProgress).xsp</value>
<value condition="Container(9000).Hasfocus(18) + [[!Skin.HasSetting(LeftMusicClipsWidgetShow-Recent) + !Skin.HasSetting(LeftMusicClipsWidgetShow-Nothing) + !Skin.HasSetting(LeftMusicClipsWidgetShow-OnFocus)] | Skin.HasSetting(LeftMusicClipsWidgetShow-OnFocus)]">special://skin/widgetplaylists/MusicVideos/MusicClips_(OnFocus).xsp</value>
<value condition="Container(9000).Hasfocus(18) + Skin.HasSetting(LeftMusicClipsWidgetShow-Recent)">special://skin/widgetplaylists/MusicVideos/MusicClips_(InProgress).xsp</value>
<value condition="Container(9000).Hasfocus(19) + [[!Skin.HasSetting(LeftConcertsWidgetShow-Recent) + !Skin.HasSetting(LeftConcertsWidgetShow-Nothing) + !Skin.HasSetting(LeftConcertsWidgetShow-OnFocus)] | Skin.HasSetting(LeftConcertsWidgetShow-OnFocus)]">special://skin/widgetplaylists/MusicVideos/Concerts_(OnFocus).xsp</value>
<value condition="Container(9000).Hasfocus(19) + Skin.HasSetting(LeftConcertsWidgetShow-Recent)">special://skin/widgetplaylists/MusicVideos/Concerts_(InProgress).xsp</value>
<value condition="Container(9000).Hasfocus(10) + [[!Skin.HasSetting(LeftMovieWidgetShow-Recent) + !Skin.HasSetting(LeftMovieWidgetShow-Nothing) + !Skin.HasSetting(LeftMovieWidgetShow-OnFocus)] | Skin.HasSetting(LeftMovieWidgetShow-OnFocus)]">special://skin/widgetplaylists/Videos/Movies_(OnFocus).xsp</value>
<value condition="Container(9000).Hasfocus(10) + Skin.HasSetting(LeftMovieWidgetShow-Recent)">special://skin/widgetplaylists/Videos/Movies_(InProgress).xsp</value>
<value condition="Container(9000).Hasfocus(16) + [[!Skin.HasSetting(LeftHDMovieWidgetShow-Recent) + !Skin.HasSetting(LeftHDMovieWidgetShow-Nothing) + !Skin.HasSetting(LeftHDMovieWidgetShow-OnFocus)] | Skin.HasSetting(LeftHDMovieWidgetShow-OnFocus)]">special://skin/widgetplaylists/Videos/HDMovies_(OnFocus).xsp</value>
<value condition="Container(9000).Hasfocus(16) + Skin.HasSetting(LeftHDMovieWidgetShow-Recent)">special://skin/widgetplaylists/Videos/HDMovies_(InProgress).xsp</value>
<value condition="Container(9000).Hasfocus(17) + [[!Skin.HasSetting(Left3DMovieWidgetShow-Recent) + !Skin.HasSetting(Left3DMovieWidgetShow-Nothing) + !Skin.HasSetting(Left3DMovieWidgetShow-OnFocus)] | Skin.HasSetting(Left3DMovieWidgetShow-OnFocus)]">special://skin/widgetplaylists/Videos/3DMovies_(OnFocus).xsp</value>
<value condition="Container(9000).Hasfocus(17) + Skin.HasSetting(Left3DMovieWidgetShow-Recent)">special://skin/widgetplaylists/Videos/3DMovies_(InProgress).xsp</value>
<value condition="Container(9000).Hasfocus(11) + [[!Skin.HasSetting(LeftTVShowWidgetShow-Recent) + !Skin.HasSetting(LeftTVShowWidgetShow-Nothing) + !Skin.HasSetting(LeftTVShowWidgetShow-OnFocus)] | Skin.HasSetting(LeftTVShowWidgetShow-OnFocus)]">special://skin/widgetplaylists/Videos/Episodes_(OnFocus).xsp</value>
<value condition="Container(9000).Hasfocus(11) + Skin.HasSetting(LeftTVShowWidgetShow-Recent)">special://skin/widgetplaylists/Videos/Episodes_(InProgress).xsp</value>
<value condition="Container(9000).Hasfocus(9) + [[!Skin.HasSetting(LeftDokuWidgetShow-Recent) + !Skin.HasSetting(LeftDokuWidgetShow-Nothing) + !Skin.HasSetting(LeftDokuWidgetShow-OnFocus)] | Skin.HasSetting(LeftDokuWidgetShow-OnFocus)]">special://skin/widgetplaylists/Videos/Dokus_(OnFocus).xsp</value>
<value condition="Container(9000).Hasfocus(9) + Skin.HasSetting(LeftDokuWidgetShow-Recent)">special://skin/widgetplaylists/Videos/Dokus_(InProgress).xsp</value>
<value></value>
</variable>
and the content:
PHP Code:
<content target="$VAR[WidgetTarget]">$VAR[DBWidgetLeft]</content>
Sadly it is to slow for my taste.
EDIT:(One List with different content according to Mainmenufocus position)/EDITEND
As soon as i code every widget separatly and use "<visible>Container(9000).Hasfocus(foo)</visible>" on top.
I dont have any speed issues.
Do i realy need to code 10 Times The same Widget with an other ID (and Content) to get the speed which im after.
Copy Paste 10 Times the same code, chanche the "List- and the "Container(foo).ListItem.XYZ" ID for every Copy to get this to work fast??
There Have to be other solutions! (Any Ideas?)
Did experimenting with includes for equal Partrs and Variable IDs ($VAR[WidgetID]) according to Container(9000).HasFocus(foo) without luck.
May one of You have a Idea or can Help.
(Goal is to show diffrent widgets (Content) according to the Focusposition of the Homemenu)
Regards