Confluence Playlist Widgets

  • Hallo zusammen ich baue mir grade einen Confluence Mod Skin mit Vielen Playlisten in Home und Submenü. Diese kann man sich dann frei wählen .Das ganze gefällt mr besser als mit Widgets zu arbeiten .
    Dazu habe ich folgendes in den Settings eingetragen .

    für das Hauptmenü

    <control id="409001" type="label">
    <width>750</width>
    <height>45</height>
    <font>font13_title</font>
    <label>Home Playlists</label>
    <textcolor>blue</textcolor>
    <shadowcolor>black</shadowcolor>
    <align>left</align>
    <aligny>center</aligny>
    </control>
    <!-- Pfad 1-->
    <control id="555" type="radiobutton">
    <description>custom home playlist</description>
    <width>750</width>
    <height>40</height>
    <textcolor>grey2</textcolor>
    <focusedcolor>white</focusedcolor>
    <texturefocus>MenuItemFO.png</texturefocus>
    <texturenofocus>MenuItemNF.png</texturenofocus>
    <label>Home Playlist 1</label>
    <onfocus>Skin.SetString(MoviesCustom,1)</onfocus>
    <onclick>Skin.ToggleSetting(Menu_Custom1)</onclick>
    <selected>Skin.HasSetting(Menu_Custom1)</selected>
    <enable>!Skin.HasSetting(Menu_Movies_Sub1)</enable>
    </control>
    <control id="8207" type="button">
    <description>Menu Movies Sub Custom4 Label</description>
    <label>- Name</label>
    <label2>$INFO[Skin.String(Menu_Custom1_Label)]</label2>
    <width>750</width>
    <height>40</height>
    <font>font12</font>
    <textcolor>grey2</textcolor>
    <focusedcolor>white</focusedcolor>
    <texturefocus>MenuItemFO.png</texturefocus>
    <texturenofocus>MenuItemNF.png</texturenofocus>
    <onclick>Skin.SetString(Menu_Custom1_Label)</onclick>
    <visible>Skin.HasSetting(Menu_Custom1)</visible>
    </control>
    <control id="8208" type="button">
    <description>Menu Movies Sub Custom4 Path</description>
    <label>- Pfad</label>
    <label2>$INFO[Skin.String(Menu_Custom1_Path)]</label2>
    <width>750</width>
    <height>40</height>
    <font>font12</font>
    <textcolor>grey2</textcolor>
    <focusedcolor>white</focusedcolor>
    <texturefocus>MenuItemFO.png</texturefocus>
    <texturenofocus>MenuItemNF.png</texturenofocus>
    <onclick>Skin.SetFile(Menu_Custom1_Path,.xsp,special://videoplaylists)</onclick>
    <visible>Skin.HasSetting(Menu_Custom1)</visible>
    </control>

    Dazu Passend in der Home xml

    <item id="15">
    <description>Custom Playlist 1</description>
    <label>$INFO[Skin.String(Menu_Custom1_Label)]</label>
    <property name="spl">$INFO[Skin.String(Menu_Custom1_Path)]</property>
    <icon>special://skin/backgrounds/custom1.jpg</icon>
    <thumb>$INFO[Skin.String(Menu_Custom1_Folder)]</thumb>
    <onclick>ActivateWindow(10025,$INFO[Skin.String(Menu_Custom1_Path)],return)</onclick>
    <visible>Skin.HasSetting(Menu_Custom1)</visible>
    </item>

    Jetzt möchte ich aber wenn ich eine Playlist für das Hauptmenü auswähle automatisch die gleiche Playlist in den Widgets haben .

    In den Widgets habe ich folgendes stehen .
    <control type="group">
    <left>190</left>
    <top>50</top>
    <visible>Library.HasContent(Movies)</visible>
    <visible>Container(9000).Hasfocus(15) + !Skin.HasSetting(HomepageHideRecentlyAddedVideo) + !Skin.HasSetting(HomeMenuMovieUsePlaylist)</visible>
    <include>VisibleFadeEffect</include>
    <control type="label">
    <description>Title label</description>
    <left>180</left>
    <top>220</top>
    <height>20</height>
    <width>540</width>
    <label>Neue Hinzugefügt</label>
    <align>center</align>
    <aligny>center</aligny>
    <font>font12_title</font>
    <textcolor>white</textcolor>
    <shadowcolor>black</shadowcolor>
    </control>
    <control type="list" id="8000">
    <animation effect="slide" start="0,0" end="90,0" time="0" condition="String.IsEqual(Container(8000).NumItems,4)">conditional</animation>
    <animation effect="slide" start="0,0" end="180,0" time="0" condition="String.IsEqual(Container(8000).NumItems,3)">conditional</animation>
    <animation effect="slide" start="0,0" end="270,0" time="0" condition="String.IsEqual(Container(8000).NumItems,2)">conditional</animation>
    <animation effect="slide" start="0,0" end="360,0" time="0" condition="String.IsEqual(Container(8000).NumItems,1)">conditional</animation>
    <left>0</left>
    <top>0</top>
    <width>900</width>
    <height>220</height>
    <onleft>8000</onleft>
    <onright>8000</onright>
    <onup>20</onup>
    <ondown condition="Control.IsVisible(600)">600</ondown>
    <ondown condition="!Control.IsVisible(600)">9000</ondown>
    <viewtype label="535">list</viewtype>
    <pagecontrol/>
    <scrolltime>200</scrolltime>
    <orientation>Horizontal</orientation>
    <itemlayout height="220" width="180">
    <control type="image">
    <description>background</description>
    <left>0</left>
    <top>0</top>
    <width>180</width>
    <height>220</height>
    <texture border="15">RecentAddedBack.png</texture>
    </control>
    <control type="image">
    <left>10</left>
    <top>10</top>
    <width>160</width>
    <height>170</height>
    <texture fallback="DefaultVideoCover.png" background="true">$INFO[ListItem.Art(poster)]</texture>
    <aspectratio>keep</aspectratio>
    <bordertexture border="5">button-nofocus.png</bordertexture>
    <bordersize>5</bordersize>
    </control>
    <control type="label">
    <left>15</left>
    <top>185</top>
    <width>150</width>
    <height>20</height>
    <font>font12</font>
    <textcolor>white</textcolor>
    <shadowcolor>black</shadowcolor>
    <selectedcolor>selected</selectedcolor>
    <align>center</align>
    <aligny>center</aligny>
    <label>$INFO[ListItem.Label]</label>
    </control>
    </itemlayout>
    <focusedlayout height="220" width="180">
    <control type="image">
    <description>background</description>
    <left>0</left>
    <top>0</top>
    <width>180</width>
    <height>220</height>
    <texture border="15">RecentAddedBack.png</texture>
    </control>
    <control type="image">
    <left>10</left>
    <top>10</top>
    <width>160</width>
    <height>170</height>
    <texture fallback="DefaultVideoCover.png" background="true">$INFO[ListItem.Art(poster)]</texture>
    <aspectratio>keep</aspectratio>
    <bordertexture border="5">folder-focus.png</bordertexture>
    <bordersize>5</bordersize>
    <visible>Control.HasFocus(8000)</visible>
    </control>
    <control type="image">
    <left>10</left>
    <top>10</top>
    <width>160</width>
    <height>170</height>
    <texture fallback="DefaultVideoCover.png">$INFO[ListItem.Art(poster)]</texture>
    <aspectratio>keep</aspectratio>
    <bordertexture border="5">button-nofocus.png</bordertexture>
    <bordersize>5</bordersize>
    <visible>!Control.HasFocus(8000)</visible>
    </control>
    <control type="label">
    <left>15</left>
    <top>185</top>
    <width>150</width>
    <height>20</height>
    <font>font12</font>
    <textcolor>white</textcolor>
    <shadowcolor>black</shadowcolor>
    <selectedcolor>selected</selectedcolor>
    <align>center</align>
    <aligny>center</aligny>
    <label>$INFO[ListItem.Label]</label>
    <visible>!Control.HasFocus(8000)</visible>
    </control>
    <control type="label">
    <left>15</left>
    <top>185</top>
    <width>150</width>
    <height>20</height>
    <font>font12</font>
    <textcolor>blue</textcolor>
    <selectedcolor>selected</selectedcolor>
    <align>center</align>
    <aligny>center</aligny>
    <label>$INFO[ListItem.Label]</label>
    <visible>Control.HasFocus(8000)</visible>
    </control>
    </focusedlayout>
    <content>special://skin/playlists/Home Widgets 1.xsp</content>
    </control>
    <control type="button">
    <description>left Arrow</description>
    <left>-40</left>
    <top>90</top>
    <width>30</width>
    <height>40</height>
    <texturefocus>arrow-big-left.png</texturefocus>
    <texturenofocus>arrow-big-left.png</texturenofocus>
    <onclick>Control.Move(8000,-1)</onclick>
    <visible>Control.HasFocus(8000) + Container(8000).HasPrevious</visible>
    <include>VisibleFadeEffect</include>
    </control>
    <control type="button">
    <description>right Arrow</description>
    <left>910</left>
    <top>90</top>
    <width>30</width>
    <height>40</height>
    <texturefocus>arrow-big-right.png</texturefocus>
    <texturenofocus>arrow-big-right.png</texturenofocus>
    <onclick>Control.Move(8000,1)</onclick>
    <visible>Control.HasFocus(8000) + Container(8000).HasNext</visible>
    <include>VisibleFadeEffect</include>
    </control>

    Wie bekomme ich das nun besser hin ?

  • erstmal bitte [code][/code]Tags bitte nutzen, dann ist das besser lesbar und man hat sogar syntax hightlight wenn mans richtig macht.

    --------------
    Guides nicht mehr verfügbar wegen Youtube unvermögen guten von schlechten Kodi Videos zu unterscheiden.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!