Alternate Home Screen

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
FREAKJAM Offline
Junior Member
Posts: 42
Joined: Aug 2011
Reputation: 0
Post: #11
dutch pride! Big Grin
find quote
Silverlock Offline
Junior Member
Posts: 20
Joined: Dec 2010
Reputation: 0
Post: #12
I noticed tonight that clicking on one of the recently added albums in the home screen didn't do anything. That seemed odd, so I switched back to the normal home screen and clicking on one there started playing the album. So I took at look at the two xml files and noticed a difference in the <onclick> handlers; the alternate home wasn't wrapping the album path in a PlayMedia() call. A quick edit later, and the alternate home now works like the normal one when you click on an album (which I imagine was probably the intent all along).
Code:
--- includes_home_alt.xml~    2011-10-23 19:55:33.184712000 -0600
+++ includes_home_alt.xml    2011-10-23 19:53:36.480712001 -0600
@@ -2129,7 +2129,7 @@
                <item id="26">
                    <label>$INFO[Window.Property(LatestAlbum.1.Title),, • ]$INFO[Window.Property(LatestAlbum.1.Artist)]</label>
                    <onclick>Playlist.Clear</onclick>
-                    <onclick>$INFO[Window.Property(LatestAlbum.1.Path)]</onclick>
+                    <onclick>PlayMedia(&quot;$INFO[Window.Property(LatestAlbum.1.Path)]&quot;)</onclick>
                    <icon>defaultaudio.png</icon>
                    <thumb>$INFO[Window.Property(LatestAlbum.1.Thumb)]</thumb>
                    <visible>IsEmpty(Skin.String(CustomHomeItemName_15))</visible>
@@ -2137,7 +2137,7 @@
                <item id="27">
                    <label>$INFO[Window.Property(LatestAlbum.2.Title),, • ]$INFO[Window.Property(LatestAlbum.2.Artist)]</label>
                    <onclick>Playlist.Clear</onclick>
-                    <onclick>$INFO[Window.Property(LatestAlbum.2.Path)]</onclick>
+                    <onclick>PlayMedia(&quot;$INFO[Window.Property(LatestAlbum.2.Path)]&quot;)</onclick>
                    <icon>defaultaudio.png</icon>
                    <thumb>$INFO[Window.Property(LatestAlbum.2.Thumb)]</thumb>
                    <visible>IsEmpty(Skin.String(CustomHomeItemName_14))</visible>
@@ -2145,7 +2145,7 @@
                <item id="28">
                    <label>$INFO[Window.Property(LatestAlbum.3.Title),, • ]$INFO[Window.Property(LatestAlbum.3.Artist)]</label>
                    <onclick>Playlist.Clear</onclick>
-                    <onclick>$INFO[Window.Property(LatestAlbum.3.Path)]</onclick>
+                    <onclick>PlayMedia(&quot;$INFO[Window.Property(LatestAlbum.3.Path)]&quot;)</onclick>
                    <icon>defaultaudio.png</icon>
                    <thumb>$INFO[Window.Property(LatestAlbum.3.Thumb)]</thumb>
                    <visible>IsEmpty(Skin.String(CustomHomeItemName_13))</visible>
@@ -2153,6 +2153,7 @@
                <item id="29">
                    <label>$INFO[Window.Property(LatestAlbum.4.Title),, • ]$INFO[Window.Property(LatestAlbum.4.Artist)]</label>
                    <onclick>Playlist.Clear</onclick>
+                    <onclick>PlayMedia(&quot;$INFO[Window.Property(LatestAlbum.4.Path)]&quot;)</onclick>
                    <onclick>$INFO[Window.Property(LatestAlbum.4.Path)]</onclick>
                    <icon>defaultaudio.png</icon>
                    <thumb>$INFO[Window.Property(LatestAlbum.4.Thumb)]</thumb>
@@ -2161,7 +2162,7 @@
                <item id="30">
                    <label>$INFO[Window.Property(LatestAlbum.5.Title),, • ]$INFO[Window.Property(LatestAlbum.5.Artist)]</label>
                    <onclick>Playlist.Clear</onclick>
-                    <onclick>$INFO[Window.Property(LatestAlbum.5.Path)]</onclick>
+                    <onclick>PlayMedia(&quot;$INFO[Window.Property(LatestAlbum.5.Path)]&quot;)</onclick>
                    <icon>defaultaudio.png</icon>
                    <thumb>$INFO[Window.Property(LatestAlbum.5.Thumb)]</thumb>
                    <visible>IsEmpty(Skin.String(CustomHomeItemName_11))</visible>

XBMC Eden / Maverick Meerkat (Ubuntu 10.10)
Acer AspireRevo 3610 (Atom N330/ION/4GB RAM+500GB HD), PS3 BD Remote, HDMI to Vizio M320VT
find quote
Hitcher Offline
Skilled Skinner
Posts: 9,921
Joined: Aug 2007
Reputation: 67
Location: Eastleigh, UK
Post: #13
Cheers.

[Image: sig_zps3af3b48e.jpg]
find quote
Post Reply