2019-06-16, 02:16
One random movie
you will need to make custom widget for this
includeshome.xml
xml:<?xml version='1.0' encoding='UTF-8'?>
<node type="filter">
<label>row1</label>
<content>movies</content>
<limit>1</limit>
<order direction="ascending">random</order>
</node>
you will need to make custom widget for this
includeshome.xml
xml:<include name="MainFeature">
<!-- <param name="main_label">$INFO[ListItem.Title]</param> -->
<!-- <param name="sub_label">$INFO[ListItem.TVShowTitle]</param> -->
<!-- <param name="thumb_label">$INFO[ListItem.Season,,x]$INFO[ListItem.Episode]</param> -->
<param name="sortby"></param>
<param name="visible">true</param>
<param name="sortorder">ascending</param>
<param name="widget_limit">1</param>
<definition>
<include content="CategoryLabel">
<!-- <param name="label">$PARAM[widget_header]</param> -->
<param name="list_id" value="$PARAM[list_id]"/>
</include>
<include content="BusyListSpinner">
<param name="list_id" value="$PARAM[list_id]"/>
<param name="posy" value="100"/>
</include>
<control type="panel" id="$PARAM[list_id]">
<left>400</left>
<top>0</top>
<right>0</right>
<width>720</width>
<height>500</height>
<!-- <include content="WidgetListCommon"> -->
<!-- <param name="list_id" value="$PARAM[list_id]"/> -->
<!-- </include> -->
<visible>$PARAM[visible]</visible>
<visible>Integer.IsGreater(Container($PARAM[list_id]).NumItems,0) | Container($PARAM[list_id]).IsUpdating</visible>
<itemlayout width="80%" height="480">
<control type="group">
<left>2</left>
<top>15</top>
<control type="image">
<left>0</left>
<top>0</top>
<width>720</width>
<height>480</height>
<texture fallback="$PARAM[fallback_image]" background="true">$VAR[HomeFanartVar]</texture>
<bordertexture border="21">overlays/shadow.png</bordertexture>
<bordersize>20</bordersize>
</control>
</control>
</itemlayout>
<focusedlayout width="100%" height="480">
<control type="group">
<depth>DepthContentPopout</depth>
<left>2</left>
<top>15</top>
<control type="image">
<left>0</left>
<top>0</top>
<width>720</width>
<height>480</height>
<texture fallback="$PARAM[fallback_image]" background="true">$VAR[HomeFanartVar]</texture>
<bordertexture border="21">overlays/shadow.png</bordertexture>
<bordersize>20</bordersize>
</control>
</control>
</focusedlayout>
<content sortby="$PARAM[sortby]" sortorder="$PARAM[sortorder]" target="$PARAM[widget_target]" limit="$PARAM[widget_limit]">$PARAM[content_path]</content>
</control>
</definition>
</include>