•   
  • 1
  • 5
  • 6
  • 7(current)
  • 8
  • 9
  • 22
  •   
HEADS UP: Filling a list from a directory/plugin
#91
I'm using this list in Home, and I would like to hide it and the group it is in when there are no items in the container:

PHP Code:
<control type="group">
    <include>
screen_Dimensions</include>
    <
visible>IntegerGreaterThan(Container(9140).NumItems,0)</visible>
    <
control type="list" id="9140">
        <
width>screen_Width</width>
        <include>
shelf_Container</include>
        <
itemlayout width="screen_Width" height="screen_Height">
            <include>
shelf_ContainerCommons</include>
        </
itemlayout>
        <
focusedlayout width="screen_Width" height="screen_Height">
            <include>
shelf_ContainerCommons</include>
            <include>
shelf_ContainerCommons-fo</include>
        </
focusedlayout>
        <
content target="video">special://skin/playlists/movies/recommended.xsp</content>
       
</control>
</
control

However, using this way it's never visible. Is it even possible or does this go wrong because retrieving the list, and thus evaluating the number of items, takes place after the visibility condition is already set?
Reply
#92
Nevermind Big Grin
Reply
#93
@Jeroen
Yes, the list is not loading because the parent group is hidden. You need the condition in the list control, put the control outside of the group and use Control.IsVisible(9140) for the group.
Image
Reply
#94
Thanks Black, but unfortunately that doesn't work. It should though I think.

If I replace the content target with a "normal" static list with summy entries it does work as expected

This container will display:
PHP Code:
<control type="list" id="9130">
    <
width>screen_Width</width>
    <
onleft>9120</onleft>
    <
onright>9140</onright>
    <
onup>9130</onup>
    <
ondown>9130</ondown>
    <
pagecontrol>70</pagecontrol>
    <include>
shelf_Container</include>
    <
visible>IntegerGreaterThan(Container(9130).NumItems,2)</visible>
    <
itemlayout width="screen_Width" height="screen_Height">
        <include>
shelf_ContainerCommons</include>
    </
itemlayout>
    <
focusedlayout width="screen_Width" height="screen_Height">
        <include>
shelf_ContainerCommons</include>
        <include>
shelf_ContainerCommons-fo</include>
    </
focusedlayout>
    <
content>
        <
item id="1">
            <
label>label2</label>
            <
thumb>backgrounds/livetv.jpg</thumb>
            <
onclick>-</onclick>
        </
item>
        <
item id="2">
            <
label>label2</label>
            <
thumb>backgrounds/livetv.jpg</thumb>
            <
onclick>-</onclick>
        </
item>
    </
content>
</
control

Yet this will not, even though the playlist in question contains 25 items:

PHP Code:
<control type="list" id="9130">
    <
width>screen_Width</width>
    <
onleft>9120</onleft>
    <
onright>9140</onright>
    <
onup>9130</onup>
    <
ondown>9130</ondown>
    <
pagecontrol>70</pagecontrol>
    <include>
shelf_Container</include>
    <
visible>IntegerGreaterThan(Container(9130).NumItems,2)</visible>
    <
itemlayout width="screen_Width" height="screen_Height">
        <include>
shelf_ContainerCommons</include>
    </
itemlayout>
    <
focusedlayout width="screen_Width" height="screen_Height">
        <include>
shelf_ContainerCommons</include>
        <include>
shelf_ContainerCommons-fo</include>
    </
focusedlayout>
    <
content target="video">special://skin/playlists/movies/recommended.xsp</content>
</control
Reply
#95
Ah yes, sorry. Smile You need to have allowhiddenfocus="true", else it will not work.
Image
Reply
#96
That works, thanks. But that causes problems in other areas unfortunately. The list must not be allowed to be focused, and it really needs to stay in that group as the list itself is part of another list and always (if visible) needs to have a fixed width. Hard to explain and a bit out of the scope of this thread I think.

Darn.. Wink
Reply
#97
I'm pretty sure this isn't possible, or ?

TVShow Studio Icons in a list:

<texture>$INFO[Listitem.Studio,extras/flagging/studios/,.png]</texture>

and the content:

<content target="video">videodb://tvshows/studios/</content>

Thanx ...
Reply
#98
Try ListItem.Label instead of ListItem.Studio, that should do.
Image
Reply
#99
(2014-03-12, 21:51)`Black Wrote: Try ListItem.Label instead of ListItem.Studio, that should do.

You're my hero mate !!! Smile

It works ...
Reply
Was trying out something with getting Youtube trailers on home screen. Which works fine, with art and all.

<content target="video">plugin://plugin.video.youtube/?contact=trailers&amp;external=true&amp;feed=uploads&amp;login=false&amp;path=%2froot%2fexplore%2ftrailers</content>


But they don't seem to load on startup. I can go into the library and come back, still nothing. Not until i reload do they show.
Image [RELEASE] Metroid
Image [RELEASE] IrcChat
Reply
@MassIV - Just tested that then and it works fine for me on startup. Maybe its just a connection issue taking a while to download?



Also, just wanted to express in general my appreciation for this feature. Best thing ever. I'm wondering if there is any way to get to the information dialog for the content?
arctic horizon 2 - alpha release now available.
Reply
Yes, maybe it's a problem with the connection. Also working fine here on startup.

@jurialmunkey
Don't think that will come but I'm working on adding <oninfo> as an action so you can show a custom dialog. Will be after Gotham, though.
Image
Reply
Alright, thnx for checking guys. Would there be any difference if you had the path in a skin string?
Edit: skin string is not the problem.
Image [RELEASE] Metroid
Image [RELEASE] IrcChat
Reply
So I'd like to use service.library.data.provider to launch recommended movies. Not by filling into a custom list, but just straight into the videos window.

PHP Code:
<onclick>ActivateWindow(Videos,plugin://service.library.data.provider?type=recommendedmovies&reload=$INFO[Window.Property(recommendedmovies)])</onclick> 

This works fine basically, except for the fact that a "directory up" link is on top of the listing which leads to nowhere of course. Clicking it will result in a neverending busy dialog.

Is there any way I could remedy this?
Reply
Did you try with a ,return?
Image
Reply
  •   
  • 1
  • 5
  • 6
  • 7(current)
  • 8
  • 9
  • 22
  •   



Logout Mark Read Team Forum Stats Members Help
HEADS UP: Filling a list from a directory/plugin1
This forum uses Lukasz Tkacz MyBB addons.