Due to maintenance, our forum will be offline for a short while on Monday June 1st, around 22:00 UTC.

[HOW TO] Library Node Examples
One random movie
<?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
<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>

Image
Reply
 
Thread Rating:
  • 5 Vote(s) - 3.8 Average


Messages In This Thread
[HOW TO] Library Node Examples - by zag - 2016-01-22, 11:47
RE: Library Node Examples - by DaveBlake - 2016-01-22, 13:13
RE: Library Node Examples - by zag - 2016-01-22, 15:13
RE: Library Node Examples - by DaveBlake - 2016-01-24, 11:36
RE: Library Node Examples - by tkgafs - 2016-01-26, 11:21
RE: Library Node Examples - by DarkHelmet - 2016-01-26, 13:09
RE: Library Node Examples - by zag - 2016-01-26, 13:14
RE: Library Node Examples - by DarkHelmet - 2016-01-26, 14:42
RE: Library Node Examples - by zag - 2016-01-26, 14:52
RE: Library Node Examples - by annejones101 - 2020-02-15, 11:03
RE: Library Node Examples - by tkgafs - 2016-01-31, 12:06
RE: Library Node Examples - by DaveBlake - 2016-01-31, 12:34
RE: Library Node Examples - by DarkHelmet - 2016-01-31, 14:38
RE: Library Node Examples - by DaveBlake - 2016-01-31, 14:43
RE: Library Node Examples - by DaveBlake - 2016-01-31, 14:45
RE: Library Node Examples - by zag - 2016-01-31, 14:49
RE: Library Node Examples - by YamYam - 2020-03-10, 11:08
RE: [HOW TO] Library Node Examples - by zag - 2016-01-31, 15:33
RE: [HOW TO] Library Node Examples - by zag - 2016-01-31, 16:08
RE: [HOW TO] Library Node Examples - by zag - 2016-02-03, 10:45
RE: [HOW TO] Library Node Examples - by zag - 2016-02-24, 13:43
RE: [HOW TO] Library Node Examples - by zag - 2016-02-26, 17:36
RE: [HOW TO] Library Node Examples - by zag - 2016-02-27, 15:41
RE: [HOW TO] Library Node Examples - by zag - 2016-03-30, 22:12
RE: [HOW TO] Library Node Examples - by zag - 2016-03-31, 11:04
RE: [HOW TO] Library Node Examples - by zag - 2016-05-23, 21:29
RE: [HOW TO] Library Node Examples - by zag - 2016-05-23, 22:07
RE: [HOW TO] Library Node Examples - by Zani - 2017-10-25, 14:45
RE: [HOW TO] Library Node Examples - by Zani - 2017-10-30, 14:38
RE: [HOW TO] Library Node Examples - by Zani - 2017-10-31, 15:56
RE: [HOW TO] Library Node Examples - by Er1c - 2018-05-12, 07:02
RE: [HOW TO] Library Node Examples - by DaVu - 2018-11-06, 15:53
RE: [HOW TO] Library Node Examples - by Alion - 2018-11-06, 18:09
RE: [HOW TO] Library Node Examples - by ronie - 2019-02-08, 12:20
RE: [HOW TO] Library Node Examples - by ronie - 2019-02-08, 13:19
RE: [HOW TO] Library Node Examples - by PatK - 2019-06-13, 19:49
RE: [HOW TO] Library Node Examples - by PatK - 2019-06-16, 05:31
RE: [HOW TO] Library Node Examples - by the_other_guy - 2019-06-16, 02:16
RE: [HOW TO] Library Node Examples - by PatK - 2019-06-17, 16:40
[HOW TO] Library Node Examples - by Finchy - 2019-06-21, 10:34
[HOW TO] Library Node Examples - by Finchy - 2019-06-21, 20:46
RE: [HOW TO] Library Node Examples - by PatK - 2019-06-23, 04:51
RE: [HOW TO] Library Node Examples - by PatK - 2019-06-24, 00:04
RE: [HOW TO] Library Node Examples - by PatK - 2019-06-24, 18:38
RE: [HOW TO] Library Node Examples - by TimoJ - 2020-01-01, 19:58
RE: [HOW TO] Library Node Examples - by PatK - 2019-12-08, 22:38
RE: [HOW TO] Library Node Examples - by TimoJ - 2020-01-05, 15:21


Logout Mark Read Team Forum Stats Members Help
[HOW TO] Library Node Examples3.85
This forum uses Lukasz Tkacz MyBB addons.