2021-12-01, 22:39
I have a button on my Home.xml that has
I'm assuming that the window that loads has
Ultimately, I'm looking to change the content tag to contain a variable so that I can change it more easily when certain buttons get focused. Example
and then my variable:
This sort of works if I add a <content>$VAR[movieContent]</content> block inside my view, but it messes things up overall. Here is a stripped down version of what I'm talking about in my ViewsVideoLibrary.xml
The posters show correctly in the main container, but the additional list items are messed up. When I change it from All Movies to Recently Added, the main image block changes to show the 25 most recently added movies but the corresponding information (Title, duration, year, etc.) still follow the information for all movies.
Example:
When ALL MOVIES is selected, the first movie is "21 Jump Street". If I change it to RECENTLY ADDED, the content changes to the 25 most recently added movies and the poster for the first item correctly displays the "Avengers: End Game" poster, but when I hover over it, the title, duration, year, etc. all still show the information for "21 Jump Street".
Is there a way for me to either change the content so that it can use a variable? Or can I get the $INFO[ListItem.Label], $INFO[ListItem.Year], etc. to use the information from the additional <content>$VAR[movieContent]</content> tag that I added in my ViewsVideoLibrary.xml?
which opens up my movie library.xml:<onclick>ActivateWindow(Videos,videodb://movies/titles/)</onclick>
I'm assuming that the window that loads has
somewhere but I can't seem to find it.xml:<content>videodb://movies/titles/</content>
Ultimately, I'm looking to change the content tag to contain a variable so that I can change it more easily when certain buttons get focused. Example
xml:<content>$VAR[movieContent]</content>
and then my variable:
xml:
<variable name="movieContent">
<value condition="Container(60102).HasFocus(2)">videodb://recentlyaddedmovies/</value>
<value>videodb://movies/titles/</value>
</variable>
This sort of works if I add a <content>$VAR[movieContent]</content> block inside my view, but it messes things up overall. Here is a stripped down version of what I'm talking about in my ViewsVideoLibrary.xml
xml:
<?xml version="1.0" encoding="UTF-8"?>
<includes>
<include name="MyCustomView">
<control type="grouplist">
<control type="panel" id="601">
<content>$VAR[movieContent]</content>
<itemlayout width="183" height="260">
<control type="image">
<texture background="true">$VAR[PosterThumb]</texture>
</control>
</itemlayout>
<focusedlayout width="288" height="270">
<control type="image">
<texture background="true">$VAR[PosterThumb]</texture>
</control>
</focusedlayout>
</control>
</control>
</include>
</includes>
The posters show correctly in the main container, but the additional list items are messed up. When I change it from All Movies to Recently Added, the main image block changes to show the 25 most recently added movies but the corresponding information (Title, duration, year, etc.) still follow the information for all movies.
Example:
When ALL MOVIES is selected, the first movie is "21 Jump Street". If I change it to RECENTLY ADDED, the content changes to the 25 most recently added movies and the poster for the first item correctly displays the "Avengers: End Game" poster, but when I hover over it, the title, duration, year, etc. all still show the information for "21 Jump Street".
Is there a way for me to either change the content so that it can use a variable? Or can I get the $INFO[ListItem.Label], $INFO[ListItem.Year], etc. to use the information from the additional <content>$VAR[movieContent]</content> tag that I added in my ViewsVideoLibrary.xml?