Kodi Community Forum

Full Version: Hide Widget on home D.I.Y
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Home.xml
SkinSettings.xml
you will need to add this + !Skin.HasSetting just need a unique name so the play list name works so call it
this example will work to turn of on inprogress_movies
+ !Skin.HasSetting(home_no_inprogress_movies_widget)
xml:
<include content="WidgetListPoster" condition="Library.HasContent(movies)">
       <param name="content_path" value="special://skin/playlists/inprogress_movies.xsp"/>
       <param name="widget_header" value="$LOCALIZE[31010]"/>
       <param name="widget_target" value="videos"/>
       <param name="list_id" value="5100"/>
      </include>
the new line will look like this
xml:
<include content="WidgetListPoster" condition="Library.HasContent(movies)+ !Skin.HasSetting(home_no_inprogress_movies_widget)">
       <param name="content_path" value="special://skin/playlists/inprogress_movies.xsp"/>
       <param name="widget_header" value="$LOCALIZE[31010]"/>
       <param name="widget_target" value="videos"/>
       <param name="list_id" value="5100"/>
      </include>
SkinSettings.xml
find button code
<control type="radiobutton" id="611"> will need to be unique name adding a letters after number works
xml:

    <control type="radiobutton" id="611">
     <label>$LOCALIZE[342]</label>
     <include>DefaultSettingButton</include>
     <selected>!Skin.HasSetting(HomeMenuNoMovieButton)</selected>
     <onclick>Skin.ToggleSetting(HomeMenuNoMovieButton)</onclick>
    </control>
!Skin.HasSetting(home_no_inprogress_movies_widget) copy what ever you put in side( ) on home.xml
xml:

<control type="radiobutton" id="611b">
     <label>- Widget inprogress movies</label>
     <include>DefaultSettingButton</include>
     <selected>!Skin.HasSetting(home_no_inprogress_movies_widget)</selected>
     <onclick>Skin.ToggleSetting(home_no_inprogress_movies_widget)</onclick>
    </control>