Plot - ResentlyAddedVideo

  • Hallo Gemeinde.

    Ich habe versucht mir den Plot der RecentlyAddedVideos im ConfluenceMOD anzeigen zu lassen, und zwar sobald man den Focus darauf hat.
    Es hat zwar geklappt, siehe Screenshot, aber leider nicht mit ListItem.Plot, weshalb mein Code nun extrem lang geworden ist. Hat jemand einen Tipp für mich wie ich den noch kürzen kann?

    Danke!
    Gruß
    bg

  • + Eintrag in der Includes.xml:

    Code
    <variable name="RecentlyAddedPlot">
    	<value condition="Container(8000).HasFocus(1)">$INFO[Window.Property(LatestMovie.1.Plot)]</value>
    	<value condition="Container(8000).HasFocus(2)">$INFO[Window.Property(LatestMovie.2.Plot)]</value>
    	<value condition="Container(8000).HasFocus(3)">$INFO[Window.Property(LatestMovie.3.Plot)]</value>
    	<value condition="Container(8000).HasFocus(4)">$INFO[Window.Property(LatestMovie.4.Plot)]</value>
    	<value condition="Container(8000).HasFocus(5)">$INFO[Window.Property(LatestMovie.5.Plot)]</value>
    </variable>
  • <variable name="RecentlyAddedPlot"> <value condition="Container(8000).HasFocus(1)">$INFO[Window.Property(LatestMovie.1.Plot)]</value> <value condition="Container(8000).HasFocus(2)">$INFO[Window.Property(LatestMovie.2.Plot)]</value> <value condition="Container(8000).HasFocus(3)">$INFO[Window.Property(LatestMovie.3.Plot)]</value> <value condition="Container(8000).HasFocus(4)">$INFO[Window.Property(LatestMovie.4.Plot)]</value> <value condition="Container(8000).HasFocus(5)">$INFO[Window.Property(LatestMovie.5.Plot)]</value> </variable>

    Du musst es jeweils in deinem container einmal einfügen. Trage einfach eine property in all deine items:

    PHP
    <item id="1">
    <property name="Plot">$INFO[Window(Home).Property(LatestMovie.1.Plot)]</property>
    </item>

    Dann kannst du es mit:

    PHP
    <label>$INFO[Container(8000).ListItem.Property(Plot)]</label>

    anzeigen lassen.


    Ah, Danke!
    Viele Wege führen nach Rom.


  • Code
    <visible>Container(8000).HasFocus(1)</visible>


    kann man weglassen... jedenfalls funktioniert es :)

    bg

  • hab den atv2 keinen windows rechner...

    ja sicher habe ich probiert in "post#7" aber er zeigt weiterhin nur den ersten an egal welchen ich makiere


    das ist in meiner includes.xml :


    <variable name="RecentlyAddedPlot">
    <value condition="Container(8000).HasFocus(1)">$INFO[Window.Property(LatestMovie.1.Plot)]</value>
    <value condition="Container(8000).HasFocus(2)">$INFO[Window.Property(LatestMovie.2.Plot)]</value>
    <value condition="Container(8000).HasFocus(3)">$INFO[Window.Property(LatestMovie.3.Plot)]</value>
    <value condition="Container(8000).HasFocus(4)">$INFO[Window.Property(LatestMovie.4.Plot)]</value>
    <value condition="Container(8000).HasFocus(5)">$INFO[Window.Property(LatestMovie.5.Plot)]</value>
    </variable>


    das in meiner includeshomerecendlyadded.xml :


    <control type="group">
    <include>VisibleFadeEffect</include>
    <visible>Control.HasFocus(8000)</visible>
    <control type="image">
    <posx>410</posx>
    <posy>280</posy>
    <height>250</height>
    <width>850</width>
    <texture>black-back.png</texture>
    </control>
    <control type="textbox">
    <description>Description Value for Movies</description>
    <posx>420</posx>
    <posy>285</posy>
    <width>830</width>
    <height>230</height>
    <textcolor>white</textcolor>
    <label>$VAR[RecentlyAddedPlot]</label>
    <autoscroll time="3000" delay="4000" repeat="5000">Skin.HasSetting(AutoScroll)</autoscroll>
    <visible>Container(8000).HasFocus(1)</visible>
    </control>
    </control>

  • Wird an "Container(8000).HasFocus(1)" liegen da du ja sagst das dies der erste Film sein soll.. musst für die anderen dann auch was machen

  • das problem zb ist wenn ich "<visible>Container(8000).HasFocus(2)</visible>" eintrage das er nix ausliest, wenn ich aber "hasfocus(1) sage und in der include.xml da den eintrag für "hasfocus(1)" auf "LatestMovie.2.Plot" setzeliest er den 2ten plot aus, müsste das nicht normal mit "hasfocus" 2-5 gehen#?

    hier mal ein auszug aus meiner includes xml, vielleicht habe ich es an der falschen stelle eingefügt?


    <includes>
    <include file="NasStatus.xml" />
    <include file="defaults.xml" />
    <include file="ViewsVideoLibrary.xml" />
    <include file="ViewsMusicLibrary.xml" />
    <include file="ViewsFileMode.xml" />
    <include file="ViewsPictures.xml" />
    <include file="ViewsAddonBrowser.xml" />
    <include file="ViewsLiveTV.xml" />
    <include file="ViewsPVR.xml" />
    <include file="IncludesCodecFlagging.xml" />
    <include file="IncludesHomeRecentlyAdded.xml" />
    <include file="IncludesHomeMenuItems.xml" />
    <include file="IncludesBackgroundBuilding.xml" />
    <include file="weather+\10DayForecast.xml" />
    <include file="weather+\36HourForecast.xml" />
    <include file="weather+\WeekendForecast.xml" />
    <include file="weather+\HourlyForecast.xml" />
    <include file="weather+\MapsVideo.xml" />
    <include file="ViewVideoShowcase.xml" />
    <include file="ViewVideoLandscape.xml" />
    <include file="WeatherWidget.xml" />
    <include file="ViewsMusicFanart.xml" />
    <include file="ViewsMusicLowList.xml" />
    <include file="ViewsVideoBannerwall.xml" />
    <include file="ViewsVideoBannerLow.xml" />
    <include file="ViewsVideoRightList.xml" />
    <include file="Views3dCoverView.xml" />
    <include file="ViewsVideoCaseWrap.xml" />
    <include file="ViewVideoLandscape.xml" />
    <include file="ViewMusicWallstream.xml" />
    <include file="Viewtype_Lowlist.xml" />
    <include file="Viewtype_Episode.xml" />
    <include file="ViewVideo_Fanart.xml" />
    <include file="ViewWall.xml" />
    <include file="Viewtype_CoverFlow.xml" />
    <include file="Viewtype_Showcase.xml" />
    <include file="Viewtype_LauncherInfo.xml" />
    <include file="Viewtype_LauncherPosterOne.xml" />
    <include file="Viewtype_LauncherPosterWide.xml" />
    <include file="Viewtype_LauncherPosterWide2.xml" />
    <include file="Viewtype_LauncherPosterOne_Icons.xml" />
    <include file="Viewtype_LauncherPosterTwo_Icons.xml" />

    <variable name="RecentlyAddedPlot">
    <value condition="Container(8000).HasFocus(1)">$INFO[Window.Property(LatestMovie.1.Plot)]</value>
    <value condition="Container(8000).HasFocus(2)">$INFO[Window.Property(LatestMovie.2.Plot)]</value>
    <value condition="Container(8000).HasFocus(3)">$INFO[Window.Property(LatestMovie.3.Plot)]</value>
    <value condition="Container(8000).HasFocus(4)">$INFO[Window.Property(LatestMovie.4.Plot)]</value>
    <value condition="Container(8000).HasFocus(5)">$INFO[Window.Property(LatestMovie.5.Plot)]</value>
    </variable>

    <constant name="FanartCrossfadeTime">500</constant>
    <constant name="IconCrossfadeTime">400</constant>


    und aus meiner IncludesHomeRecentlyAdded.xml : habe den code ab zeile 756


    <control type="group">
    <include>VisibleFadeEffect</include>
    <visible>Control.HasFocus(8000)</visible>
    <control type="image">
    <posx>410</posx>
    <posy>280</posy>
    <height>250</height>
    <width>850</width>
    <texture>black-back.png</texture>
    </control>
    <control type="textbox">
    <description>Description Value for Movies</description>
    <posx>420</posx>
    <posy>285</posy>
    <width>830</width>
    <height>230</height>
    <font>font11_title</font>
    <textcolor>white</textcolor>
    <label>$VAR[RecentlyAddedPlot]</label>
    <autoscroll time="3000" delay="4000" repeat="5000">Skin.HasSetting(AutoScroll)</autoscroll>
    <visible>Container(8000).HasFocus(1)</visible>

    </control>
    </control>


    <posx>0</posx>
    <posy>0</posy>
    <visible>Library.HasContent(Movies)</visible>
    <visible>Container(9000).Hasfocus(10)</visible>
    <include>VisibleFadeEffect</include>
    <control type="label">
    <description>Title label</description>
    <posx>10</posx>
    <posy>5</posy>
    <height>20</height>
    <width>540</width>
    <label>40012</label>
    <align>center</align>
    <aligny>center</aligny>
    <font>font12_title</font>
    <textcolor>white</textcolor>
    <shadowcolor>black</shadowcolor>
    </control>

    Einmal editiert, zuletzt von pimp1310 (16. Oktober 2012 um 00:37)

Jetzt mitmachen!

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