Kodi Community Forum

Full Version: Inconsistent $PARAM passthrough
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Alright, I am doing some updating to bring my skin up to Krypton and am having some issues that are putting me at wits end...

On my home screen I am calling a panel with this include-

PHP Code:
            <include content="Home_SubMenu">
                <
param name="home_number" value="Home1"/>
                <
param name="homemenu_number" value="HomeMenu1"/>    
                <
param name="id_number" value="15"/>
                <
param name="content_include" value="Home_SubMenu_$INFO[Skin.String(Home1SubMenu)]"/>                
            </include> 

and here is the include itself-

PHP Code:
<include name="Home_SubMenu">

        <
control type="button" id="15002">
            <
posy>80</posy>
            <
height>80</height>
            <
width>80</width>
            <
textwidth>400</textwidth>
            <
onright>ClearProperty(ShowSubMenu,home)</onright>
            <
onright>SetFocus(1000)</onright>
            <
label>$PARAM[content_include]</label>
            <
texturenofocus colordiffuse="red">colors/color_white.png</texturenofocus>
            <
texturefocus colordiffuse="$VAR[Accent_100]">colors/color_white.png</texturefocus>
            <
onclick>ActivateWindow(settings)</onclick>
            <
align>left</align>
            <
textcolor>BaseMediumHigh</textcolor>
            <
visible>Skin.String(HomeFocus,$PARAM[homemenu_number])</visible>
            <
animation effect="slide" start="0,0" end="410,0" time="400" delay="500" tween="quadratic" easing="out" condition="!IsEmpty(Window(Home).Property(ShowSubMenu))">Conditional</animation>
        </
control>    

        <
control type="panel" id="$PARAM[id_number]000">
            <
animation effect="slide" start="0,0" end="410,0" time="400" delay="500" tween="quadratic" easing="out" condition="!IsEmpty(Window(Home).Property(ShowSubMenu))">Conditional</animation>
            <
visible>Skin.String(HomeFocus,$PARAM[homemenu_number])</visible>
            <
posx>-410</posx>
            <
posy>300</posy>
            <
width>410</width>
            <
height>1080</height>
            <
orientation>vertical</orientation>
            <
onright>ClearProperty(ShowSubMenu,home)</onright>
            <
onright>SetFocus(1000)</onright>
            <
onup>15000</onup>
            <
ondown>15000</ondown>
            <
itemlayout width="410" height="80">

                <
control type="image">
                    <include>
Common_HomeMenu_Icons</include>
                    <
texture colordiffuse="BaseMediumHigh">$INFO[ListItem.Thumb]</texture>
                </
control>
                
                <
control type="label">
                    <
posx>110</posx>
                    <
height>80</height>
                    <
width>360</width>
                    <
align>left</align>
                    <
aligny>center</aligny>
                    <
font>font50</font>
                    <
textcolor>BaseMediumHigh</textcolor>
                    <
label>$INFO[ListItem.Label]</label>
                </
control
                
            </
itemlayout>
            
            <
focusedlayout width="410" height="80">

                <
control type="image">
                    <
width>410</width>
                    <
height>80</height>
                    <include>
Common_Color_BaseLowest</include>
                </
control>

                <
control type="image">
                    <include>
Common_HomeMenu_Accent</include>
                </
control>    
            
                <
control type="image">
                    <include>
Common_HomeMenu_Icons</include>
                    <
texture>$INFO[ListItem.Thumb]</texture>
                </
control>
                
                <
control type="label">
                    <
posx>110</posx>                    
                    <
height>80</height>
                    <
width>360</width>
                    <
align>left</align>
                    <
aligny>center</aligny>
                    <
font>font50</font>
                    <
textcolor>$VAR[Accent_100]</textcolor>
                    <
label>$INFO[ListItem.Label]</label>
                </
control>
                
            </
focusedlayout>

            <
content>

                <include>
$PARAM[content_include]</include>

            </
content>

        </
control>        

    </include> 

Now I know the include is calling properly, as I can see the red test button (15002) with the content_include text, however KODI doesn't seem to be passing the same parameter to the content at the bottom of the include (or if it is, stuff just isn't working properly). If I copy the content out of one of the content includes (Home_SubMenu_Movies) and paste it into the <content> tags instead of the include call everything shows up fine. The kicker is that I am using this same exact method on another panel on the home screen and it works fine there. There are no errors in the log (even with debug enabled).

Any thoughts?
Maybe try

Code:
<param name="id_number" value="$NUMBER[15]"/>

Also not sure if $NFO[] can be sent... http://forum.kodi.tv/showthread.php?tid=...pid2500697
The '15' goes through fine.

$PARAM[content_include] is definitely able to pass the $INFO (in this case, the word 'Movies')' because I can see the text 'Home_SubMenu_Movies' in my test button label, hence the confusion as to why it doesn't work for the panel content.
The info doesnt get translated upon including. You can see the label because it gets translated in the label field.