Hallo alle,
vorweg: verwendet wird Kodi 17 und der Standard Estuary Skin.
Ich habe die Home.xml dahingehend angepasst, dass ich mir eigene Menüpunkte anzeigen lasse, diese zeigen dann auf Playlists (z.B. für Kinderfilme, Kinderserien, 3D Filme etc). Soweit, so gut - das funktioniert.
Nun möchte ich gerne auch die Widgets, die bei bei den Punkten Movies & TV Shows verwendet werden, auch bei meinen eigenen Menüpunkten verwenden - natürlich wieder entsprechend auf meine Playlists zeigend.
Ich habe dazu einfach mal Testweise den Movies Widget Teil kopiert, mit eigenen IDs versehen, leider klappt das so nicht - Es werden zwar beim Menüpunkt Movies die entsprechend angepassten Widgets gezeigt, nicht aber bei den selbsthinzugefügten.
Anbei die entsprechenden (angepassten) Teile aus der Home.xml.
<!-- WIDGETS -->
<control type="group" id="5000">
<visible>String.IsEqual(Container(9000).ListItem.Property(id),movies)</visible>
<include content="Visible_Right_Delayed">
<param name="id" value="movies"/>
</include>
<control type="grouplist" id="5001">
<include>WidgetGroupListCommon</include>
<include content="WidgetListCategories" condition="Library.HasContent(movies)">
<param name="content_path" value="library://video/movies/"/>
<param name="widget_header" value="$LOCALIZE[31148]"/>
<param name="widget_target" value="videos"/>
<param name="list_id" value="5900"/>
</include>
<include content="WidgetListPoster" condition="Library.HasContent(movies)">
<param name="content_path" value="special://profile/playlists/video/inprogress_movies.xsp"/>
<param name="widget_header" value="$LOCALIZE[31010]"/>
<param name="widget_target" value="videos"/>
<param name="list_id" value="5100"/>
</include>
<include content="WidgetListPoster" condition="Library.HasContent(movies)">
<param name="content_path" value="special://profile/playlists/video/recent_unwatched_movies.xsp"/>
<param name="widget_header" value="$LOCALIZE[20386]"/>
<param name="widget_target" value="videos"/>
<param name="list_id" value="5200"/>
</include>
<include content="WidgetListPoster" condition="Library.HasContent(movies)">
<param name="content_path" value="special://profile/playlists/video/unwatched_movies.xsp"/>
<param name="widget_header" value="$LOCALIZE[31007]"/>
<param name="widget_target" value="videos"/>
<param name="list_id" value="5300"/>
</include>
<!--include content="WidgetListPoster" condition="Library.HasContent(movies)">
<param name="content_path" value="special://skin/playlists/random_movies.xsp"/>
<param name="widget_header" value="$LOCALIZE[31006]"/>
<param name="widget_target" value="videos"/>
<param name="list_id" value="5400"/>
</include-->
<include content="WidgetListCategories" condition="Library.HasContent(movies)">
<param name="content_path" value="videodb://movies/genres/"/>
<param name="widget_header" value="$LOCALIZE[135]"/>
<param name="widget_target" value="videos"/>
<param name="list_id" value="5500"/>
<param name="icon" value="$VAR[WidgetGenreIconVar]"/>
<param name="icon_height" value="70"/>
</include>
<include content="WidgetListPoster" condition="Library.HasContent(movies)">
<param name="content_path" value="special://profile/playlists/video/MOVIESET.xsp"/>
<param name="widget_header" value="$LOCALIZE[31075]"/>
<param name="widget_target" value="videos"/>
<param name="list_id" value="5600"/>
</include>
</control>
<include content="ImageWidget" condition="!Library.HasContent(movies)">
<param name="text_label" value="$LOCALIZE[31104]" />
<param name="button_label" value="$LOCALIZE[31110]" />
<param name="button_onclick" value="ActivateWindow(videos,files,return)"/>
<param name="button_id" value="5500"/>
<param name="button2_onclick" value="Skin.SetBool(HomeMenuNoMovieButton)"/>
</include>
</control>
<!-- START KIDS MOVIES -->
<control type="group" id="50001">
<visible>String.IsEqual(Container(9000).ListItem.Property(id),moviesKids)</visible>
<include content="Visible_Right_Delayed">
<param name="id" value="moviesKids"/>
</include>
<control type="grouplist" id="50010">
<include>WidgetGroupListCommon</include>
<!--include content="WidgetListCategories" condition="Library.HasContent(movies)">
<param name="content_path" value="library://video/movies/"/>
<param name="widget_header" value="$LOCALIZE[31148]"/>
<param name="widget_target" value="videos"/>
<param name="list_id" value="5900"/>
</include-->
<include content="WidgetListPoster" condition="Library.HasContent(moviesKids)">
<param name="content_path" value="special://profile/playlists/video/inprogress_kids_movies.xsp"/>
<param name="widget_header" value="$LOCALIZE[31010]"/>
<param name="widget_target" value="videos"/>
<param name="list_id" value="51000"/>
</include>
<include content="WidgetListPoster" condition="Library.HasContent(moviesKids)">
<param name="content_path" value="special://profile/playlists/video/recent_unwatched_kids_movies.xsp"/>
<param name="widget_header" value="$LOCALIZE[20386]"/>
<param name="widget_target" value="videos"/>
<param name="list_id" value="52000"/>
</include>
<include content="WidgetListPoster" condition="Library.HasContent(moviesKids)">
<param name="content_path" value="special://profile/playlists/video/unwatched_kids_movies.xsp"/>
<param name="widget_header" value="$LOCALIZE[31007]"/>
<param name="widget_target" value="videos"/>
<param name="list_id" value="53000"/>
</include>
<!--include content="WidgetListCategories" condition="Library.HasContent(movies)">
<param name="content_path" value="videodb://movies/genres/"/>
<param name="widget_header" value="$LOCALIZE[135]"/>
<param name="widget_target" value="videos"/>
<param name="list_id" value="5500"/>
<param name="icon" value="$VAR[WidgetGenreIconVar]"/>
<param name="icon_height" value="70"/>
</include-->
<include content="WidgetListPoster" condition="Library.HasContent(moviesKids)">
<param name="content_path" value="special://profile/playlists/video/KIDS_MOVIESET.xsp"/>
<param name="widget_header" value="$LOCALIZE[31075]"/>
<param name="widget_target" value="videos"/>
<param name="list_id" value="56000"/>
</include>
</control>
<include content="ImageWidget" condition="!Library.HasContent(movies)">
<param name="text_label" value="$LOCALIZE[31104]" />
<param name="button_label" value="$LOCALIZE[31110]" />
<param name="button_onclick" value="ActivateWindow(videos,files,return)"/>
<param name="button_id" value="55000"/>
<param name="button2_onclick" value="Skin.SetBool(HomeMenuNoMovieButton)"/>
</include>
</control>
<!-- ENDE KIDS MOVIES -->
<!-- HOME-MENUE-PUNKTE -->
<content>
<item>
<label>$LOCALIZE[342]</label>
<onclick condition="Library.HasContent(movies)">ActivateWindow(10025,special://profile/playlists/video/MOVIES.xsp,return)</onclick>
<onclick condition="!Library.HasContent(movies)">ActivateWindow(Videos,sources://video/,return)</onclick>
<property name="menu_id">$NUMBER[5000]</property>
<thumb>icons/sidemenu/movies.png</thumb>
<property name="id">movies</property>
<visible>!Skin.HasSetting(HomeMenuNoMovieButton)</visible>
</item>
<item>
<label>$LOCALIZE[40010]</label>
<onclick condition="Library.HasContent(movies)">ActivateWindow(10025,special://profile/playlists/video/KIDS_MOVIES.xsp,return)</onclick>
<onclick condition="!Library.HasContent(movies)">ActivateWindow(Videos,sources://video/,return)</onclick>
<property name="menu_id">$NUMBER[50001]</property>
<thumb>icons/sidemenu/tinker_icon2.png</thumb>
<property name="id">moviesKids</property>
<visible>!Skin.HasSetting(HomeMenuNoMovieButton)</visible>
</item>
<item>
<label>$LOCALIZE[40011]</label>
<onclick condition="Library.HasContent(movies)">ActivateWindow(10025,special://profile/playlists/video/3D_MOVIES.xsp,return)</onclick>
<onclick condition="!Library.HasContent(movies)">ActivateWindow(Videos,sources://video/,return)</onclick>
<property name="menu_id">$NUMBER[50002]</property>
<thumb>icons/sidemenu/3dmovies.png</thumb>
<property name="id">3dmovies</property>
<visible>!Skin.HasSetting(HomeMenuNoMovieButton)</visible>
</item>
<item>
<label>$LOCALIZE[40012]</label>
<onclick condition="Library.HasContent(movies)">ActivateWindow(10025,special://profile/playlists/video/ANI_MOVIES.xsp,return)</onclick>
<onclick condition="!Library.HasContent(movies)">ActivateWindow(Videos,sources://video/,return)</onclick>
<property name="menu_id">$NUMBER[50003]</property>
<thumb>icons/sidemenu/animovie.png</thumb>
<property name="id">moviesAni</property>
<visible>!Skin.HasSetting(HomeMenuNoMovieButton)</visible>
</item>
<item>
<label>$LOCALIZE[20343]</label>
<onclick condition="Library.HasContent(tvshows)">ActivateWindow(10025,special://profile/playlists/video/SHOWS.xsp,return)</onclick>
<onclick condition="!Library.HasContent(tvshows)">ActivateWindow(Videos,sources://video/,return)</onclick>
<property name="menu_id">$NUMBER[6000]</property>
<thumb>icons/sidemenu/tv.png</thumb>
<property name="id">tvshows</property>
<visible>!Skin.HasSetting(HomeMenuNoTVShowButton)</visible>
</item>
<item>
<label>$LOCALIZE[40020]</label>
<onclick condition="Library.HasContent(tvshows)">ActivateWindow(10025,special://profile/playlists/video/KIDS_SHOWS.xsp,return)</onclick>
<onclick condition="!Library.HasContent(tvshows)">ActivateWindow(Videos,sources://video/,return)</onclick>
<property name="menu_id">$NUMBER[50004]</property>
<thumb>icons/sidemenu/ninjago_icon.png</thumb>
<property name="id">tvshowsKids</property>
<visible>!Skin.HasSetting(HomeMenuNoTVShowButton)</visible>
</item>
<item>
<label>$LOCALIZE[40021]</label>
<onclick condition="Library.HasContent(tvshows)">ActivateWindow(10025,special://profile/playlists/video/ANI_SHOWS.xsp,return)</onclick>
<onclick condition="!Library.HasContent(tvshows)">ActivateWindow(Videos,sources://video/,return)</onclick>
<property name="menu_id">$NUMBER[50005]</property>
<thumb>icons/sidemenu/anishow.png</thumb>
<property name="id">tvshowsAni</property>
<visible>!Skin.HasSetting(HomeMenuNoTVShowButton)</visible>
</item>
<item>
<label>$LOCALIZE[2]</label>
<onclick>ActivateWindow(Music,root,return)</onclick>
<property name="menu_id">$NUMBER[7000]</property>
<thumb>icons/sidemenu/music.png</thumb>
<property name="id">music</property>
<visible>!Skin.HasSetting(HomeMenuNoMusicButton)</visible>
</item>
<item>
<label>$LOCALIZE[427]</label>
<onclick>PlayDisc</onclick>
<property name="menu_id">$NUMBER[21000]</property>
<thumb>icons/sidemenu/disc.png</thumb>
<property name="id">disc</property>
<visible>System.HasMediaDVD</visible>
</item>
<item>
<label>$LOCALIZE[20389]</label>
<property name="menu_id">$NUMBER[16000]</property>
<onclick>ActivateWindow(Videos,musicvideos,return)</onclick>
<thumb>icons/sidemenu/musicvideos.png</thumb>
<property name="id">musicvideos</property>
<visible>!Skin.HasSetting(HomeMenuNoMusicVideoButton)</visible>
</item>
<item>
<label>$LOCALIZE[19020]</label>
<property name="menu_id">$NUMBER[12000]</property>
<onclick>ActivateWindow(TVChannels)</onclick>
<thumb>icons/sidemenu/livetv.png</thumb>
<property name="id">livetv</property>
<visible>!Skin.HasSetting(HomeMenuNoTVButton)</visible>
</item>
<item>
<label>$LOCALIZE[19021]</label>
<property name="menu_id">$NUMBER[13000]</property>
<onclick>ActivateWindow(RadioChannels)</onclick>
<thumb>icons/sidemenu/radio.png</thumb>
<property name="id">radio</property>
<visible>!Skin.HasSetting(HomeMenuNoRadioButton)</visible>
</item>
<item>
<label>$LOCALIZE[24001]</label>
<property name="menu_id">$NUMBER[8000]</property>
<onclick>ActivateWindow(1100)</onclick>
<thumb>icons/sidemenu/addons.png</thumb>
<property name="id">addons</property>
<visible>!Skin.HasSetting(HomeMenuNoProgramsButton)</visible>
</item>
<item>
<label>$LOCALIZE[1]</label>
<onclick>ActivateWindow(Pictures)</onclick>
<property name="menu_id">$NUMBER[4000]</property>
<thumb>icons/sidemenu/pictures.png</thumb>
<property name="id">pictures</property>
<visible>!Skin.HasSetting(HomeMenuNoPicturesButton)</visible>
</item>
<item>
<label>$LOCALIZE[3]</label>
<onclick>ActivateWindow(Videos,root)</onclick>
<property name="menu_id">$NUMBER[11000]</property>
<thumb>icons/sidemenu/videos.png</thumb>
<property name="id">video</property>
<visible>!Skin.HasSetting(HomeMenuNoVideosButton)</visible>
</item>
<item>
<label>$LOCALIZE[10134]</label>
<onclick>ActivateWindow(favourites)</onclick>
<property name="menu_id">$NUMBER[14000]</property>
<thumb>icons/sidemenu/favourites.png</thumb>
<property name="id">favorites</property>
<visible>!Skin.HasSetting(HomeMenuNoFavButton)</visible>
</item>
<item>
<label>$LOCALIZE[8]</label>
<onclick condition="!String.IsEmpty(Weather.Plugin)">ActivateWindow(Weather)</onclick>
<onclick condition="String.IsEmpty(Weather.Plugin)">ReplaceWindow(servicesettings,weather)</onclick>
<property name="menu_id">$NUMBER[15000]</property>
<thumb>icons/sidemenu/weather.png</thumb>
<property name="id">weather</property>
<visible>!Skin.HasSetting(HomeMenuNoWeatherButton)</visible>
</item>
<item>
<label>My OSMC</label>
<onclick>RunAddon(service.osmc.settings)</onclick>
<thumb>icons/home/addons.png</thumb>
<property name="id">osmc</property>
</item>
</content>
</control>
Alles anzeigen
Offensichtlich übersehe ich hier irgendwas, wie kommt die Verknüpfung Menüpunkt --> Widget zustande?
Bitte um einen Schubs in die richtige Richtung,
Vielen Dank im Voraus,
Gruss,
der Harry