Kodi Community Forum

Full Version: Grouping multiple panels
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm inquiring what is best way to put below panels for fanart display in group. I tried grouplist but fanart did not show.  

Code:
<control type="label" id="998">
                <font>home_title</font>
                <label>$INFO[Skin.String(CustomMyTvWidgetName2)]</label>
                <!--<visible>Control.IsVisible(9002)</visible>-->
                <include>CardLabel</include>
                <include>Animation_Window_UP</include>
            </control>
            
            <control type="panel" id="90013">
                <include>imagefade</include>
                <include>HomePosterLayout_Top</include>
            <include condition="String.StringCompare(Skin.String(CustomMyTvWidgetShape2),thumb)">HomePosterLayout_Top</include>
            <include condition="String.StringCompare(Skin.String(CustomMyTvWidgetShape2),thumb)">HomePosterLayout_Top</include>
            <include condition="String.StringCompare(Skin.String(CustomMyTvWidgetShape2),poster)">HomePosterLayout_Top</include>
            <content target="$INFO[Skin.String(CustomMyTvWidgetTarget2)]">$INFO[Skin.String(CustomMyTvWidgetPath2)]</content>
            </control>

Code:
<control type="label" id="9096">
                <font>home_title</font>
                <label>$INFO[Skin.String(CustomMyTvWidgetName3)]</label>
                <!--<visible>Control.IsVisible(9002)</visible>-->
                <include>CardLabel</include>
                <include>Animation_Window_UP</include>
            </control>
        <control type="panel" id="90012">
                <include>imagefade</include>
                <include>HomePosterLayout_Top</include>
            <include condition="String.StringCompare(Skin.String(CustomMyTvWidgetShape3),thumb)">HomePosterLayout_Top</include>
            <include condition="String.StringCompare(Skin.String(CustomMyTvWidgetShape3),thumb)">HomePosterLayout_Top</include>
            <include condition="String.StringCompare(Skin.String(CustomMyTvWidgetShape3),poster)">HomePosterLayout_Top</include>
            <content target="$INFO[Skin.String(CustomMyTvWidgetTarget3)]">$INFO[Skin.String(CustomMyTvWidgetPath3)]</content>
            </control>    
i use <control type="group">
https://forum.kodi.tv/showthread.php?tid...pid2858572

 <include>HomePosterLayout_Top</include>
            <include condition="String.StringCompare(Skin.String(CustomMyTvWidgetShape3),thumb)">HomePosterLayout_Top</include>
            <include condition="String.StringCompare(Skin.String(CustomMyTvWidgetShape3),thumb)">HomePosterLayout_Top</include>
            <include condition="String.StringCompare(Skin.String(CustomMyTvWidgetShape3),poster)">HomePosterLayout_Top</include>
            <content target="$INFO[Skin.String(CustomMyTvWidgetTarget3)]">$INFO[Skin.String(CustomMyTvWidgetPath3)]</content>
            </control>    

i would set them up in Variables.xml https://forum.kodi.tv/showthread.php?tid=341988

<control type="image">
       <left>40</left>
       <top>-320</top>
       <width>400</width>
       <height>155</height>
       <texture >$INFO[ListItem.Art(clearlogo)]</texture>
       <aspectratio aligny="center">scale</aspectratio>
      </control>
(2019-06-04, 03:07)the_other_guy Wrote: [ -> ]i use <control type="group">
https://forum.kodi.tv/showthread.php?tid...pid2858572

 <include>HomePosterLayout_Top</include>
            <include condition="String.StringCompare(Skin.String(CustomMyTvWidgetShape3),thumb)">HomePosterLayout_Top</include>
            <include condition="String.StringCompare(Skin.String(CustomMyTvWidgetShape3),thumb)">HomePosterLayout_Top</include>
            <include condition="String.StringCompare(Skin.String(CustomMyTvWidgetShape3),poster)">HomePosterLayout_Top</include>
            <content target="$INFO[Skin.String(CustomMyTvWidgetTarget3)]">$INFO[Skin.String(CustomMyTvWidgetPath3)]</content>
            </control>    

i would set them up in Variables.xml https://forum.kodi.tv/showthread.php?tid=341988

<control type="image">
       <left>40</left>
       <top>-320</top>
       <width>400</width>
       <height>155</height>
       <texture >$INFO[ListItem.Art(clearlogo)]</texture>
       <aspectratio aligny="center">scale</aspectratio>
      </control>
My apologies for the rookie question, how would i set this up in variables?
find Variables.xml
open look for
<variable name="BannerVar">
  <value condition="!String.IsEmpty(ListItem.Art(banner))">$INFO[ListItem.Art(banner)]</value>
  <value>$INFO[ListItem.Art(tvshow.banner)]</value>
</variable>
add other image types links
<variable name="keyartVar">
  <value condition="!String.IsEmpty(ListItem.Art(keyart))">$INFO[ListItem.Art(keyart)]</value>
  <value>$INFO[ListItem.Art(keyart)]</value>
</variable>
<variable name="characterartVar">
  <value condition="!String.IsEmpty(ListItem.Art(characterart))">$INFO[ListItem.Art(characterart)]</value>
  <value>$INFO[ListItem.Art(characterart)]</value>
</variable>
<variable name="discartVar">
  <value condition="!String.IsEmpty(ListItem.Art(discart))">$INFO[ListItem.Art(discart)]</value>
  <value>$INFO[ListItem.Art(discart)]</value>
</variable>
<variable name="landscapeVar">
  <value condition="!String.IsEmpty(ListItem.Art(landscape))">$INFO[ListItem.Art(landscape)]</value>
  <value>$INFO[ListItem.Art(landscape)]</value>
</variable>
<variable name="clearartVar">
  <value condition="!String.IsEmpty(ListItem.Art(clearart))">$INFO[ListItem.Art(clearart)]</value>
  <value>$INFO[ListItem.Art(clearart)]</value>
</variable>
have a look at https://forum.kodi.tv/showthread.php?tid=344394