2014-04-14, 14:39
Yes that's true, but i think i can live with those little incovenients and having 1 line of code for the contents
(2014-04-10, 09:47)denywinarto Wrote:(2014-04-10, 09:26)Jeroen Wrote: Yes
Thanks i'm gonna try implement this on Ace Gotham..
because the creator doesn't seem to be interested to do it...
What i'm trying to do is to have a populate home screen with 20+ genres playlist,
combined with recent / random..
e.g random action movies, recently added sci-fi movies
I tried it before with randomandlastitem and it's just too slow
I hope it's possible to get faster result with this
Edit : the sample on page 1 is down, any other samples?
thanks
(2014-04-19, 07:05)denywinarto Wrote: Anyone kind enough re-up the sample? thanks
<content>special://skin/extras/playlists/recent_action_movies.xsp</content>
(2014-04-19, 07:39)jurialmunkey Wrote:(2014-04-19, 07:05)denywinarto Wrote: Anyone kind enough re-up the sample? thanks
Just make a smart playlist with your requirements. Save it (playlists save by default in xbmc's userdata folder) and copy it to a folder in your skin directory (e.g. skin.name/extras/playlists/recent_action_movies.xsp) and then use that as the content for your list like so:
Code:<content>special://skin/extras/playlists/recent_action_movies.xsp</content>
Unless I'm misunderstanding what you are trying to do, then you should be able to do what you want like that.
<onload condition="System.HasAddon(script.randomandlastitems) + !IsEmpty(skin.string(vpl1.path)) + SubString(skin.string(mfvpl1_list),latest)">RunScript(script.randomandlastitems,limit=12,method=Last,playlist=$INFO[Skin.String(vpl1.path)],menu=Menu31)</onload>
<onload condition="System.HasAddon(script.randomandlastitems) + !IsEmpty(skin.string(vpl1.path)) + SubString(skin.string(mfvpl1_list),random)">RunScript(script.randomandlastitems,limit=12,method=Random,playlist=$INFO[Skin.String(vpl1.path)],menu=Menu31)</onload>
<onload condition="System.HasAddon(script.randomandlastitems) + !IsEmpty(skin.string(vpl2.path)) + SubString(skin.string(mfvpl2_list),latest)">RunScript(script.randomandlastitems,limit=12,method=Last,playlist=$INFO[Skin.String(vpl2.path)],menu=Menu32)</onload>
<onload condition="System.HasAddon(script.randomandlastitems) + !IsEmpty(skin.string(vpl2.path)) + SubString(skin.string(mfvpl2_list),random)">RunScript(script.randomandlastitems,limit=12,method=Random,playlist=$INFO[Skin.String(vpl2.path)],menu=Menu32)</onload>
<item>
<label>$INFO[Window(0).Property(PlaylistLastMovieMenu31.1.Title)]</label>
<label2>$INFO[Window(0).Property(PlaylistLastMovieMenu31.1.Tagline)]</label2>
<icon>$INFO[Window(0).Property(PlaylistLastMovieMenu31.1.Art(poster))]</icon>
<property name="Fanart">$INFO[Window(0).Property(PlaylistLastMovieMenu31.1.Art(fanart))]</property>
<property name="Genre">$INFO[Window(0).Property(PlaylistLastMovieMenu31.1.Genre)]</property>
<property name="Runtime">$INFO[Window(0).Property(PlaylistLastMovieMenu31.1.Runtime)]</property>
<property name="Rating">$INFO[Window(0).Property(PlaylistLastMovieMenu31.1.Rating)]</property>
<property name="Plot">$INFO[Window(0).Property(PlaylistLastMovieMenu31.1.Plot)]</property>
<property name="Year">$INFO[Window(0).Property(PlaylistLastMovieMenu31.1.Year)]</property>
<property name="Mpaa">$INFO[Window(0).Property(PlaylistLastMovieMenu31.1.MPAA)]</property>
<onclick>Skin.SetString(custom_id,$INFO[Window(0).Property(PlaylistLastMovieMenu31.1.DBID)])</onclick>
<onclick condition="!IsEmpty(Window(0).Property(PlaylistLastMovieMenu31.1.Trailer))">Skin.SetString(custom_trailer,$INFO[Window(0).Property(PlaylistLastMovieMenu31.1.Trailer)])</onclick>
<onclick>ActivateWindow(623)</onclick>
<visible>!IsEmpty(Window(0).Property(PlaylistLastMovieMenu31.1.Title))</visible>
</item>
(2013-11-12, 01:44)jmarshall Wrote: This is now in mainline.
@pecinko: You can set a node:visible property that will be evaluated at display-time for switching items on and off dynamically after initial list fill (i.e. after window load). The list itself is only refreshed on window load.
There's also:
* node:target which can be used to define the target window/context. e.g. if listitem.path is 'library://video/movies/titles' and node.target is 'video' it'll switch to the video window and list the movie titles on click.
* node:target_url which can be used to override listitem.path in determining what to do when the item is clicked on. This can be useful if you want listitem.path to point to a folder (to allow you to list it's content in another container when the item has focus) while allowing the click on that item to do something different. For example, the "Movies" button on confluence does this by other means - when you highlight Movies, the overview level of Movies is listed in the submenu underneath (Genres, Titles, Directors etc.) This is equivalent to a different container listing library://video/movies/. However, when you click on Movies, you're taken directly to library://video/movies/titles.
@LongMan: In principle, yes. You could point it to library://video/foo.xml or whatever. Note that the things that occur after directory listing (perhaps setting of content type, and art assignment) won't occur. But for just listing the overview pages from the library that won't be a problem.
Cheers,
Jonathan
#Home window
<onload>SetProperty(RefreshList,1,Home)</onload>
#Content
<content>$VAR[PlaylistPath]</content>
#Path Variable
<variable name="PlaylistPath">
<value condition="!Window.IsVisible(3050)">path_to_playlist</value>
</variable>
#Custom window
<?xml version="1.0" encoding="UTF-8"?>
<window type="dialog" id="3050">
<allowoverlay>no</allowoverlay>
<onload>ClearProperty(RefreshList,Home)</onload>
<visible>!IsEmpty(Window(Home).Property(RefreshList))</visible>
<animation effect="fade" start="100" end="0" time="0" delay="5">WindowClose</animation>
<controls></controls>
</window>
(2014-03-07, 13:22)Martijn Wrote: FYI i've been modifying the script from BigNoid to make it faster and handle playlists (just like randomandlastitems now does). Will finish it after i get from a month of vacationMartijn... any news/progress on this ?. Not pushing anything. Just asking.
It's integrated in skin widgets so you should be able to use both the old properties and the new plugin:// possibilities
(2014-04-12, 19:32)`Black Wrote: 1. I just saw that you can use "target_url" for a custom onclick path so you don't need an extra button.Black... can you give me an code example about this?. Whatever i try is not working.
(2014-05-12, 07:50)DjCisco Wrote: Hi ,
I currently using skin widgets for the home menu in my skin. But with this functionality the code would of course be much simple. However I would like to know if anyone has experience with the performance of the feature. Concrectly would using this feature lead to a faster loading of the content compared to skin widgets?
Thanks