Quantcast
Channel: Kodi Community Forum - Skinning
Viewing all articles
Browse latest Browse all 1803

Q: usage of and [Container(id).]ListItem inside My**nav.xml

$
0
0
Hi, got a question. As i am unable to understand the correct usage here.

<oninfo>[built_in]</oninfo>

and

Container(id). in Container(id).ListItem.[foo] gets igored when its used in custom ( in my case panel) containers.

____

Background.

I did a view type for container.content(seasons)  which uses different panel containers (unique ids given ) with custom content...

https://i.imgur.com/jdOjzSo.jpg


<grouplist>
    <itemgap>0</itemgap>
    <orientation>vertical</orientation>
    <usecontrolcoords>true</usecontrolcoords>
    
    <control type="group">
        <control type="textbox">
            Heading or other labels, and use Container(5290062).ListItem.[foo] working fine here
        </control>
        <control type="panel">
            <oninfo>Action</oninfo> <!-- oninfo-Action gets ignored -->
            
            <!--
            !String.IsEmpty(Container(5290062).ListItem.Property(LocalTrailer))
            will be handled as '!String.IsEmpty(ListItem.Property(LocalTrailer))
            -->
            
            <onclick condition="!String.IsEmpty(Container(5290062).ListItem.Property(LocalTrailer))">PlayMedia($INFO[Container(5290062).ListItem.Property(LocalTrailer)],1)</onclick>
            <onclick condition="String.IsEmpty(Container(5290062).ListItem.Property(LocalTrailer))">PlayMedia($INFO[Container(5290062).ListItem.FilenameAndPath],1)</onclick>
                        
            
            <content>foo</content>
        </control>
    </group>
</grouplist>


- containers and labels/textboxes  all working fine

- the only issue i get , at least 'dont understand' is why

<oninfo> tagged actions gets ignored
and
Container(id). Prefix arent working
which are used for actions/conditions in panel containers

eg.
issue 1

using
<oninfo>RunScript(script.embuary.info,call=person,query='"$INFO[Container(5290061).ListItem.Label])'"</oninfo> do nothing/ignored,
tested same action as <onclick> action work fine.

issue 2:
<onclick>Skin.SetString(SearchTerm,$INFO[Container(5290061).ListItem.Label])</onclick>

action itself working fine, BUT the result is always the currently selected listitem.label , AND
Container(5290061). gets ignored,

So it doesnt matter if i use: Skin.SetString(SearchTerm,$INFO[Container(idofanothercontainerorevenatext).ListItem.Label]) the skin.string always set currentfocuseditem ListItem.Label



Any help in getting correct usage or explanation why i cant use it that way would be great.

In any case, i wish you all great Christams Time.

Viewing all articles
Browse latest Browse all 1803

Trending Articles