Dynamic content sent to list container from current focus item?
#1
Alright, i posted a request for an addon, and the reply i received made me look deeper in to the skinning manual. as a newbie, I look at it and think, "yeah, it can be done," then i try a few things and dead-end each time.  I just don't want to futz around on something that cant be done anyway, simply because i'm ignorant and don't have a deep enough knowledge of the code yet.

So I will ask first.  

I want to send dynamic content to a list container.  I assume it will probably be a path, I think.  I cant get my head around this one at the moment.

So lets say i have two list containers in one window.  I will call them id="909", and "910"

909 is genres
I want to focus, say on "hard rock," in 909

910 is artists
Upon focus in 909, i want 910 to populate the artists in that genre
Then as focus changes in 909, content in 910 changes.

Is this possible?
Reply
#2
for your 910 container you should be fine with

code:
<content target="music">musicdb://artists/?xsp=%7B%22rules%22%3A%7B%22or%22%3A%5B%7B%22field%22%3A%22genre%22%2C%22operator%22%3A%22contains%22%2C%22value%22%3A%5B%22$INFO[Container(909).Listitem.Label]%22%5D%7D%5D%7D%2C%22type%22%3A%22artists%22%7D</content>
Skins |  Titan M O D   •   S W A N (WIP)
Reply
#3
(2020-05-07, 18:33)mardukL Wrote: for your 910 container you should be fine with

code:
<content target="music">musicdb://artists/?xsp=%7B%22rules%22%3A%7B%22or%22%3A%5B%7B%22field%22%3A%22genre%22%2C%22operator%22%3A%22contains%22%2C%22value%22%3A%5B%22$INFO[Container(909).Listitem.Label]%22%5D%7D%5D%7D%2C%22type%22%3A%22artists%22%7D</content>

Holy Scripting, Batman!

I would have never figured this out.

Thank you, mardukL!!!!!!


Image
Reply
#4
(2020-05-07, 19:54)YerMusic (IO) Wrote:
(2020-05-07, 18:33)mardukL Wrote: for your 910 container you should be fine with

code:
<content target="music">musicdb://artists/?xsp=%7B%22rules%22%3A%7B%22or%22%3A%5B%7B%22field%22%3A%22genre%22%2C%22operator%22%3A%22contains%22%2C%22value%22%3A%5B%22$INFO[Container(909).Listitem.Label]%22%5D%7D%5D%7D%2C%22type%22%3A%22artists%22%7D</content>

Holy Scripting, Batman!

I would have never figured this out.

Thank you, mardukL!!!!!!


Image

i had never figured that out by myself.Just lucky to look at that thread

But i forget the simple one.

i think


code:
<content target="music">$INFO[Container(909).Listitem.Folderpath]</content>

should work too.

Wink
Skins |  Titan M O D   •   S W A N (WIP)
Reply
#5
I wasnt sure if i should stay in this thread, or make a new one.

ok, so i have a rudimentary set up now, and the only place i can hit play is on tracks, but im sure that is default somwhere.

I want to play-all at any position.  genre, artist, and album too.  does anybody know if this is possible??

i added <onclick>PlayerControl(Play)</onclick> but it didnt do squat other than toggle what is already playing from the song level.

Image
Reply
#6
this seems to work on albums, but no higher in the directory (artists and genre)

<onclick>PlayMedia($INFO[ListItem.FolderPath],isdir)</onclick>
Reply
#7
This is what happens in the playlist window when i do this at the artist level.

Image
Reply
#8
(2020-05-08, 00:59)YerMusic (IO) Wrote: I wasnt sure if i should stay in this thread, or make a new one.

ok, so i have a rudimentary set up now, and the only place i can hit play is on tracks, but im sure that is default somwhere.

I want to play-all at any position.  genre, artist, and album too.  does anybody know if this is possible??

i added <onclick>PlayerControl(Play)</onclick> but it didnt do squat other than toggle what is already playing from the song level.

Image

you should try PlayMedia(media[,isdir][,1],[playoffset=xx],[resume],[noresume])

BUT " ,isdir " will sadly not work for music.


May you need a script to play the folder

e.g. embuaryhelper or playalbum script
Skins |  Titan M O D   •   S W A N (WIP)
Reply

Logout Mark Read Team Forum Stats Members Help
Dynamic content sent to list container from current focus item?0