• 1
  • 13
  • 14
  • 15(current)
  • 16
  • 17
  • 22
HEADS UP: Filling a list from a directory/plugin
Your itemlayout and focusedlayout arent displaying anything, because you have no Texture tag on them. it shoudl be like this;

Code:
<focusedlayout height="144" width="144">
      <control type="image">
                        <left>0</left>
                        <top>0</top>
                        <width>142</width>
                        <height>142</height>
                         <texture>$INFO[ListItem.Icon]</texture>
                         <bordertexture border="5">folder-focus.png</bordertexture>
                        <bordersize>5</bordersize>
                        <aspectratio>scale</aspectratio>
         </control>
</focusedlayout>

The content tag you used is also showing to nowhere.

The content tag should point to the desired folder so basically;

<content>C:\Music\Jazz </content>

But since you want to make this dynamic, you write

<content>$INFO[Container.FolderPath]$INFO[ListItem.Label,\] </content>

$INFO[Container.FolderPath] = C:\Music
$INFO[ListItem.Label,\] = \Jazz



P.S. I just tried it and it works
Reply
Hi dj, thanks again for helping me!

What you said makes perfect sense, but I'm still having trouble displaying the albums. New code is bellow, can you see any more issues?


Code:
    <include name="ViewList">
        <posx>60</posx>
        <posy>0</posy>
        <width>1220</width>
        <height>600</height>
        <scrolltime tween="cubic" easing="out">600</scrolltime>
        <pagecontrol>9010</pagecontrol>
        <itemgap>60</itemgap>
        <orientation>horizontal</orientation>
        <control type="group">
            <visible>Control.IsVisible(50)</visible>            
            <posx>60</posx>
            <posy>0</posy>
            <width>320</width>
            <height>435</height>
            <control type="label">                            
                <visible>Control.HasFocus(50)</visible>
                <label>collection</label>
                <include>Common_Section_Label</include>                        
            </control>            
            <control type="label">                            
                <visible>!Control.HasFocus(50)</visible>
                <label>collection</label>
                <include>Common_Section_Label_Off</include>                        
            </control>            
            <control type="list" id="50">                    
                <posx>0</posx>
                <posy>60</posy>
                <width>320</width>
                <height>425</height>
                <onright>8001</onright>
                <onleft>9000</onleft>
                <onup>50</onup>
                <ondown>50</ondown>
                <pagecontrol>60</pagecontrol>
                <viewtype label="List">list</viewtype>
                <scrolltime tween="cubic" easing="out">600</scrolltime>
                <preloaditems>2</preloaditems>
                <itemlayout width="320" height="56">
                <control type="label">
                    <posx>32</posx>
                    <posy>0</posy>
                    <width min="20" max="580">auto</width>
                    <height>56</height>
                    <label>$INFO[ListItem.Label]</label>
                    <textcolor>Label_Normal</textcolor>
                    <font>Menu-List</font>
                    <aligny>center</aligny>
                </control>
                </itemlayout>
                <focusedlayout width="320" height="56">
                    <control type="image">                        
                        <posx>0</posx>
                        <posy>0</posy>
                        <width>320</width>
                        <height>56</height>
                        <texture>colors/color_keyboard.png</texture>
                        <visible>Control.HasFocus(50)</visible>
                    </control>
                    <control type="image">                            
                        <posx>0</posx>
                        <posy>0</posy>
                        <width>320</width>
                        <height>56</height>
                        <texture>colors/color_white.png</texture>
                        <colordiffuse>Background_Highlight</colordiffuse>
                        <visible>Control.HasFocus(50)</visible>
                    </control>
                    <control type="label">
                        <posx>32</posx>
                        <posy>0</posy>
                        <width min="20" max="580">auto</width>
                        <height>56</height>
                        <label>$INFO[ListItem.Label]</label>
                        <textcolor>Label_Normal</textcolor>
                        <font>Menu-List</font>
                        <aligny>center</aligny>
                    </control>
                </focusedlayout>                    
            </control>    
            
            <control type="panel">
                <left>320</left>
                <top>60</top>
                <width>1220</width>
                <height>432</height>
                <viewtype label="21371">list</viewtype>
                <pagecontrol>64</pagecontrol>
                <scrolltime tween="cubic" easing="out">600</scrolltime>
                <orientation>horizontal</orientation>
                <preloaditems>3</preloaditems>
                <itemlayout height="144" width="144">
                    <control type="image">
                        <left>0</left>
                        <top>0</top>
                        <width>142</width>
                        <height>142</height>
                          <texture>$INFO[ListItem.Icon]</texture>
                         <bordersize>5</bordersize>
                         <aspectratio>scale</aspectratio>
                        </control>
                </itemlayout>
                <focusedlayout height="144" width="144">
                    <control type="image">
                        <left>0</left>
                        <top>0</top>
                        <width>142</width>
                        <height>142</height>
                          <texture>$INFO[ListItem.Icon]</texture>
                          <bordertexture border="5">folder-focus.png</bordertexture>
                         <bordersize>5</bordersize>
                         <aspectratio>scale</aspectratio>
                        </control>
                </focusedlayout>
            </control>
            <content>$INFO[Container.FolderPath]$INFO[ListItem.Label,\] </content>
        </control>
Reply
the content tag is oustide the panel control, it should be in it, directly after </focusedlayout>
Reply
Argh! knew it was something stupid. All working - thanks again Smile
Reply
(2014-07-28, 19:05)Hitcher Wrote:
(2013-11-12, 01:44)jmarshall Wrote: 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

Anyone get the visible node working?

I'm using this but only the first content is visible even though the condition changes -

PHP Code:
<content visible="StringCompare(Container(5000).Label,Recent Movies)" target="video">plugin://service.library.data.provider?type=recentmovies&amp;reload=$INFO[Window.Property(recentmovies)]&amp;limit=5</content>
<content visible="StringCompare(Container(5000).Label,Recommended Movies)" target="video">plugin://service.library.data.provider?type=recommendedmovies&amp;reload=$INFO[Window.Property(recommendedmovies)]&amp;limit=5</content>
<content visible="StringCompare(Container(5000).Label,Random Movies)" target="video">plugin://service.library.data.provider?type=randommovies&amp;reload=$INFO[Window.Property(randommovies)]&amp;limit=5</content>
<content visible="StringCompare(Container(5000).Label,Recent Episodes)" target="video">plugin://service.library.data.provider?type=recentepisodes&amp;reload=$INFO[Window.Property(recentepisodes)]&amp;limit=5</content>
<content visible="StringCompare(Container(5000).Label,Recommended Episodes)" target="video">plugin://service.library.data.provider?type=recommendedepisodes&amp;reload=$INFO[Window.Property(recommendedepisodes)]&amp;limit=5</content>
<content visible="StringCompare(Container(5000).Label,Random Episodes)" target="video">plugin://service.library.data.provider?type=randomepisodes&amp;reload=$INFO[Window.Property(randomepisodes)]&amp;limit=5</content>
<content visible="StringCompare(Container(5000).Label,Recent Albums)" target="music">plugin://service.library.data.provider?type=recentalbums&amp;reload=$INFO[Window.Property(recentalbums)]&amp;limit=5</content>
<content visible="StringCompare(Container(5000).Label,Recommended Albums)" target="music">plugin://service.library.data.provider?type=recommendedalbums&amp;reload=$INFO[Window.Property(recommendedalbums)]&amp;limit=5</content>
<content visible="StringCompare(Container(5000).Label,Random Albums)" target="music">plugin://service.library.data.provider?type=randomalbums&amp;reload=$INFO[Window.Property(randomalbums)]&amp;limit=5</content> 

(2014-07-28, 19:58)sualfred Wrote: @Hitcher:
Nope, tested it. Doesn't work for me, too.

The node target_url also doesn't work for me:

PHP Code:
<content target_url="ActivateWindow(Music,special://skin/playlists/songs/random.xsp,return)">special://skin/playlists/songs/random.xsp</content> 
It still plays the selected song, but it should open the playlist window.
So am I doing it wrong or is it broken?

Jonathan?
Reply
As far as I understood him correctly, there is no visible/target_url attribute available.

I think you have to switch to <include condition="foo"> or use variables instead.
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
(2014-07-29, 08:19)Hitcher Wrote: So am I doing it wrong or is it broken?

Jonathan?

Neither. It's not and never was implemented, that's all.

node:target_url and node:visible is for a single item, not the whole content. So it's just for plugins because they construct the listitems and can specify a target_url and visible condition for each item.

Your example should be possible with variables instead:

PHP Code:
<variable name="ContentTarget">
    <
value condition="StringCompare(Container(5000).Label,Recent Albums)">music</value>
    <
value>video</value>
</
variable>

<
variable name="Content">
    <
value condition="StringCompare(Container(5000).Label,Recent Albums)">plugin://service.library.data.provider?type=recentalbums&amp;reload=$INFO[Window.Property(recentalbums)]&amp;limit=5</value>
    
<value>plugin://service.library.data.provider?type=recentmovies&amp;reload=$INFO[Window.Property(recentmovies)]&amp;limit=5</value>
</variable>

<
content target="$VAR[ContentTarget]">$VAR[Content]</content
Image
Reply
I was using something similar before but albums weren't playing so I thought it wasn't working properly but have since figured out this is a problem with library.data.provider.

Thanks.
Reply
(2014-07-28, 21:27)DjCisco Wrote: Hi Community,

I am trying to add a widget to he home screen where favourites are displayed: using this <content>favourites://</content> displays all the favourites perfectly fine. But when clickin on an element no action is performed. Since Favourites can be movies , tv shows, songs, albums, folders, addons .... basically anything.Which target does one have to use?


Anybody has any hints on this?
Reply
(2014-04-12, 13:40)SpaceMonkey Wrote: It seems you cannot tap into the contents of special://masterprofile/favourites.xml using this method?

(2014-04-12, 14:21)Martijn Wrote:
(2014-04-12, 13:40)SpaceMonkey Wrote: It seems you cannot tap into the contents of special://masterprofile/favourites.xml using this method?

did you try special://profile/favourites.xml

(2014-04-12, 14:43)SpaceMonkey Wrote: 15:39:19 T:4540960768 ERROR: GetDirectory - Error getting /Users/anssi/Library/Application Support/XBMC/userdata/favourites.xml
15:39:19 T:4540960768 ERROR: GetDirectory - Error getting special://profile/favourites.xml

(2014-07-25, 21:55)Eddage Wrote: How would I use this to pull content from a folder I've added to my favourites?

I can get it to pull the favourites by using <content>favourites://</content> but if I try something like <content>favourites://GameCube</content> it just returns the favourites again.

Is this even possible to do or would I need the link to the directory itself (which is very long and cumbersome)? I'd like to use the favourite if possible because that way the user could change it depending on their setup.
Reply
I am able to display all favourites without a problem. The following works fine <content>favourites://</content> .

BUT, clicking on favourite doesnt work, so my question is what should I do , in order for the click behaviour to work properly.

I assume something with the target, BUT which target is appropiate,? (favourites can be anything, so putting target= video or target= music doesnt seem right)
Reply
It's not possible at the moment.
Image
Reply
Ok thanks for the info
Reply
Hi everyone.

I use content static for plugin of categories VIDEO. And get error below:
PHP Code:
ERRORXFILE::CDirectory::GetDirectory Error getting 


I use:
PHP Code:
<variable name="Name_Category">
        <
value  condition="Container.Content(Episodes) + Control.IsVisible(650)">plugin://categorryepisodes</value>
        
<value  condition="Container.Content(TVShows) + Control.IsVisible(650)">plugin://categorrytvshow</value>
        
<value  condition="Container.Content(Movies) + Control.IsVisible(650)">plugin://categorrymovie</value>
        
<value></value>
</
variable>

<
content target="Videos">$VAR[Name_Category]</content

Examle: I click on control static, from content Episodes window to content Movies window. It still pass to window, but It has a error.
PHP Code:
54:01 T:1996  NOTICEThread BackgroundLoader startauto deletefalse
16
:54:01 T:3132  NOTICEThread LanguageInvoker startauto deletefalse
16
:54:01 T:4288   ERRORXFILE::CDirectory::GetDirectory Error getting
16
:54:01 T:3132  NOTICE: -->Python Interpreter Initialized<-- 

Update:
Current window is content TVShows, current content statics is folder (link active content Episodes window). When I click item content static so that show content Episodes window and get error above. But Episodes window and static content of Episodes window still load and show ok. :|
Thanks for reading. My English is not good.
Reply
category Wink
Reply
  • 1
  • 13
  • 14
  • 15(current)
  • 16
  • 17
  • 22

Logout Mark Read Team Forum Stats Members Help
HEADS UP: Filling a list from a directory/plugin1