Help with $PARAM
#1
Hello to all!!

In my journey to learn how to make a skin, I'm still have trouble to really understand how $PARAM work!

I have this $PARAM:
Code:
<include name="NoWidgets">
        <param name="label">$PARAM[text_label]</param>
        <definition>
             <control type="textbox">
                <width>100%</width>
                <height>150</height>
                <label>$PARAM[text_label]</label>
                <align>center</align>
                <aligny>center</aligny>
                <font>font14</font>
            </control>             
        </definition>
    </include>

and then, this to call: 

Code:
<include content="NoWidgets">
     <param name="$PARAM[text_label]">$LOCALIZE[31116]</param>
</include>

This is right? (damn, PARAMS are so tough LOL)
Reply
#2
to make it easier for people getting into skinning,
we have a very extensive manual, which includes a section about params:
https://kodi.wiki/view/Skinning_Manual#U...n_includes
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
Try the following:-

xml:
<include name="NoWidgets">
  <param name="label" default="some default value used if you don't pass a param" />
  <definition>
    <control type="textbox">
      <width>100%</width>
      <height>150</height>
      <label>$PARAM[label]</label>
      <align>center</align>
      <aligny>center</aligny>
      <font>font14</font>
    </control>            
  </definition>
</include>

xml:
<include content="NoWidgets">
     <param name="label" value="$LOCALIZE[31116]" />
</include>

As ronie said the skinning manual goes into detail on how it works.
Reply
#4
thank you @ronie and @roidy !!!

Both answers gave me exactly what I need to understand!!!
Reply

Logout Mark Read Team Forum Stats Members Help
Help with $PARAM0